1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 packageurl-python,
6 pythonOlder,
7 rich,
8 setuptools,
9 versionCheckHook,
10}:
11
12buildPythonPackage 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}