
Diff: https://github.com/CycloneDX/cyclonedx-python/compare/refs/tags/v4.6.0...v5.1.2 Changelog: https://github.com/CycloneDX/cyclonedx-python/releases/tag/v5.1.2
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cyclonedx-python";
|
|
version = "5.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-jh/7sMVBQWptC6Zi+yEwraR7leoyqYg4is83qao7gaY=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ poetry-core ];
|
|
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
chardet
|
|
cyclonedx-python-lib
|
|
packageurl-python
|
|
pip-requirements-parser
|
|
packaging
|
|
tomli
|
|
]
|
|
++ cyclonedx-python-lib.optional-dependencies.validation;
|
|
|
|
pythonImportsCheck = [ "cyclonedx" ];
|
|
|
|
meta = {
|
|
description = "Creates CycloneDX Software Bill of Materials (SBOM) from Python projects";
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-python";
|
|
changelog = "https://github.com/CycloneDX/cyclonedx-python/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = lib.teams.cyberus.members;
|
|
mainProgram = "cyclonedx-py";
|
|
};
|
|
}
|