a8b1b57b85
GitOrigin-RevId: fc4148a47fa927319186061aa42633c8aa5777f1
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, importlib-metadata
|
|
, jsonschema
|
|
, lxml
|
|
, packageurl-python
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requirements-parser
|
|
, setuptools
|
|
, toml
|
|
, types-setuptools
|
|
, types-toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cyclonedx-python-lib";
|
|
version = "1.1.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-U8CTSz+weh2IJr9Mc1kAtTa3edydQjMvHVpTVXJ7mYU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
packageurl-python
|
|
requirements-parser
|
|
setuptools
|
|
toml
|
|
types-setuptools
|
|
types-toml
|
|
];
|
|
|
|
checkInputs = [
|
|
jsonschema
|
|
lxml
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cyclonedx"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for generating CycloneDX SBOMs";
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-python-lib";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|