Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, defusedxml, fastjsonschema, fetchFromGitHub, jsonschema, pytestCheckHook, pyyaml, semantic-version, setuptools, xmlschema,}:
buildPythonPackage rec { pname = "lib4sbom"; version = "0.9.3"; pyproject = true;
src = fetchFromGitHub { owner = "anthonyharrison"; repo = "lib4sbom"; tag = "v${version}"; hash = "sha256-HnRr8ij/NFFMgXIlLFKrX8dBdGN1VZnUsE5QcWx4AZc="; };
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 ]; };}