24 buildPythonPackage rec {
25 pname = "cyclonedx-python-lib";
29 disabled = pythonOlder "3.9";
31 src = fetchFromGitHub {
33 repo = "cyclonedx-python-lib";
34 rev = "refs/tags/v${version}";
35 hash = "sha256-nklizCiu7Nmynjd5WU5oX/v2TWy9xFVF4GkmCwFKZLI=";
38 pythonRelaxDeps = [ "py-serializable" ];
40 build-system = [ poetry-core ];
55 optional-dependencies = {
72 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
74 pythonImportsCheck = [ "cyclonedx" ];
77 export PYTHONPATH=tests''${PYTHONPATH+:$PYTHONPATH}
80 pytestFlagsArray = [ "tests/" ];
83 # These tests require network access
84 "test_bom_v1_3_with_metadata_component"
85 "test_bom_v1_4_with_metadata_component"
86 # AssertionError: <ValidationError: "{'algorithm': 'ES256', ...
91 # Test failures seem py-serializable related
92 "tests/test_output_xml.py"
96 description = "Python library for generating CycloneDX SBOMs";
97 homepage = "https://github.com/CycloneDX/cyclonedx-python-lib";
98 changelog = "https://github.com/CycloneDX/cyclonedx-python-lib/releases/tag/v${version}";
99 license = with licenses; [ asl20 ];
100 maintainers = with maintainers; [ fab ];