Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
defusedxml,
fastjsonschema,
fetchFromGitHub,
jsonschema,
pytestCheckHook,
pyyaml,
semantic-version,
setuptools,
xmlschema,
}:
buildPythonPackage rec {
pname = "lib4sbom";
version = "0.8.8";
pyproject = true;
src = fetchFromGitHub {
owner = "anthonyharrison";
repo = "lib4sbom";
tag = "v${version}";
hash = "sha256-JfY47bskOnQeh5ueQfBtQz8Hmi9mPjCMoaFrzpxQMhU=";
};
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 = with lib; {
description = "Library to ingest and generate SBOMs";
homepage = "https://github.com/anthonyharrison/lib4sbom";
changelog = "https://github.com/anthonyharrison/lib4sbom/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ teatwig ];
};
}