File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
pkgs/by-name/ni/nix-playground Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ cacert ,
3+ fetchFromGitHub ,
4+ lib ,
5+ python3 ,
6+ } :
7+
8+ python3 . pkgs . buildPythonApplication rec {
9+ pname = "nix-playground" ;
10+ version = "1.0.1" ;
11+ pyproject = true ;
12+
13+ src = fetchFromGitHub {
14+ owner = "LaunchPlatform" ;
15+ repo = "nix-playground" ;
16+ tag = version ;
17+ hash = "sha256-uAQoJmhsTJZ4IW8Zzamq4zW+MT6k5ZrB7g+YsWFpKVs=" ;
18+ } ;
19+
20+ build-system = with python3 . pkgs ; [
21+ hatchling
22+ ] ;
23+
24+ dependencies = with python3 . pkgs ; [
25+ click
26+ pygit2
27+ rich
28+ ] ;
29+
30+ nativeCheckInputs = with python3 . pkgs ; [
31+ pytestCheckHook
32+ ] ;
33+
34+ disabledTestPaths = [
35+ # Disable tests that require nix store
36+ "tests/acceptance/"
37+ ] ;
38+
39+ # Tests require certificates
40+ # https://github.com/NixOS/nixpkgs/pull/72544#issuecomment-582674047
41+ SSL_CERT_FILE = "${ cacert } /etc/ssl/certs/ca-bundle.crt" ;
42+
43+ pythonImportsCheck = [ "nix_playground" ] ;
44+
45+ meta = {
46+ description = "Command line tools for patching nixpkgs package source code easily" ;
47+ mainProgram = "np" ;
48+ homepage = "https://github.com/LaunchPlatform/nix-playground" ;
49+ changelog = "https://github.com/LaunchPlatform/nix-playground/releases/tag/${ src . tag } " ;
50+ license = with lib . licenses ; [ mit ] ;
51+ maintainers = with lib . maintainers ; [ fangpen ] ;
52+ } ;
53+ }
You can’t perform that action at this time.
0 commit comments