Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cyclonedx-python";
|
|
version = "7.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-RHw+FYj1oYM5Yf8YcU8tOsxG+3qu0ti/AYzcGxYAp/8=";
|
|
};
|
|
|
|
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/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
teams = [ lib.teams.cyberus ];
|
|
mainProgram = "cyclonedx-py";
|
|
};
|
|
}
|