Skip to content

Commit 32e1dc9

Browse files
committed
python312Packages.csaf-tool: init at 0.3.2
1 parent 8852da7 commit 32e1dc9

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
python3Packages,
3+
}:
4+
5+
python3Packages.toPythonApplication python3Packages.csaf-tool
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
packageurl-python,
6+
pythonOlder,
7+
rich,
8+
setuptools,
9+
versionCheckHook,
10+
}:
11+
12+
buildPythonPackage rec {
13+
pname = "csaf-tool";
14+
version = "0.3.2";
15+
pyproject = true;
16+
17+
disabled = pythonOlder "3.6";
18+
19+
src = fetchFromGitHub {
20+
owner = "anthonyharrison";
21+
repo = "csaf";
22+
tag = "${version}";
23+
hash = "sha256-LR6r03z0nvvAQgFHaTWfukoJmLZ6SLPXfbp/G8N/HtM=";
24+
};
25+
26+
build-system = [ setuptools ];
27+
28+
dependencies = [
29+
packageurl-python
30+
rich
31+
];
32+
33+
# has not tests
34+
doCheck = false;
35+
36+
pythonImportsCheck = [ "csaf" ];
37+
38+
nativeCheckInputs = [ versionCheckHook ];
39+
40+
meta = with lib; {
41+
description = "CSAF generator and validator";
42+
homepage = "https://github.com/anthonyharrison/csaf";
43+
changelog = "https://github.com/anthonyharrison/csaf/releases/tag/${src.tag}";
44+
license = licenses.asl20;
45+
maintainers = with maintainers; [ teatwig ];
46+
};
47+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,6 +2946,8 @@ self: super: with self; {
29462946

29472947
crytic-compile = callPackage ../development/python-modules/crytic-compile { };
29482948

2949+
csaf-tool = callPackage ../development/python-modules/csaf-tool { };
2950+
29492951
cson = callPackage ../development/python-modules/cson { };
29502952

29512953
csrmesh = callPackage ../development/python-modules/csrmesh { };

0 commit comments

Comments
 (0)