2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, importlib-metadata
|
2022-01-13 20:06:32 +00:00
|
|
|
, jsonschema
|
|
|
|
, lxml
|
2021-10-28 06:52:43 +00:00
|
|
|
, packageurl-python
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requirements-parser
|
|
|
|
, setuptools
|
|
|
|
, toml
|
2021-12-06 16:07:01 +00:00
|
|
|
, types-setuptools
|
|
|
|
, types-toml
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cyclonedx-python-lib";
|
2022-01-22 01:22:15 +00:00
|
|
|
version = "1.1.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CycloneDX";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-22 01:22:15 +00:00
|
|
|
hash = "sha256-U8CTSz+weh2IJr9Mc1kAtTa3edydQjMvHVpTVXJ7mYU=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
|
|
|
packageurl-python
|
|
|
|
requirements-parser
|
|
|
|
setuptools
|
|
|
|
toml
|
2021-12-06 16:07:01 +00:00
|
|
|
types-setuptools
|
|
|
|
types-toml
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
jsonschema
|
|
|
|
lxml
|
2021-10-28 06:52:43 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|