parent
6cb484c4aa
commit
ebdd2392bf
57
pkgs/by-name/li/lib4sbom/package.nix
Normal file
57
pkgs/by-name/li/lib4sbom/package.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "lib4sbom";
|
||||
version = "0.7.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anthonyharrison";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-UQZZYTRDbUqSH6F8hjhp9L70025cRO3zXQ8Aoznotg4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pyyaml
|
||||
semantic-version
|
||||
defusedxml
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3Packages; [
|
||||
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";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ teatwig ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user