Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, defusedxml, fetchFromGitHub, jsonschema, pytestCheckHook, pythonOlder, pyyaml, semantic-version, setuptools, xmlschema,}:
buildPythonPackage rec { pname = "lib4sbom"; version = "0.8.7"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "anthonyharrison"; repo = "lib4sbom"; tag = "v${version}"; hash = "sha256-qHKedDh7G6yvk6LOs5drJJbkLo20/dP49GG7Q/pOmBw="; };
build-system = [ setuptools ];
dependencies = [ defusedxml 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 ]; };}