blob: dcf9bc60f1491cbf9c1e3d8133b73f7da04fe93f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
lib,
buildPythonPackage,
defusedxml,
fastjsonschema,
fetchFromGitHub,
jsonschema,
pytestCheckHook,
pyyaml,
semantic-version,
setuptools,
xmlschema,
}:
buildPythonPackage rec {
pname = "lib4sbom";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "anthonyharrison";
repo = "lib4sbom";
tag = "v${version}";
hash = "sha256-GYXkxnZU7QYczKbJUiU+8TmboZQG9nkg00S1IRXeK6c=";
};
build-system = [ setuptools ];
dependencies = [
defusedxml
fastjsonschema
jsonschema
pyyaml
semantic-version
xmlschema
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# stub tests that always fail
"TestCycloneDXGenerator"
"TestCcycloneDX_parser"
"TestGenerator"
"TestOutput"
"TestParser"
"TestSPDX_Generator"
"TestSPDX_Parser"
# tests with missing getters
"test_set_downloadlocation"
"test_set_homepage"
"test_set_checksum"
"test_set_externalreference"
# checks for invalid return type
"test_set_type"
# wrong capilatization
"test_set_supplier"
"test_set_originator"
];
pythonImportsCheck = [ "lib4sbom" ];
meta = {
description = "Library to ingest and generate SBOMs";
homepage = "https://github.com/anthonyharrison/lib4sbom";
changelog = "https://github.com/anthonyharrison/lib4sbom/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ teatwig ];
};
}
|