Skip to content

Commit 0a270bf

Browse files
nix-playground: init at 1.0.1 (#384171)
2 parents 6ea4ff6 + 493c865 commit 0a270bf

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
}

0 commit comments

Comments
 (0)