50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "cyclonedx-python";
|
|
version = "7.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-python";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-mBOkSgHGKc77zhcMmdsrlZLXsK2t00VFiGW5eSN2lxc=";
|
|
};
|
|
|
|
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;
|
|
|
|
pythonRelaxDeps = [
|
|
"chardet"
|
|
];
|
|
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
blitz
|
|
];
|
|
mainProgram = "cyclonedx-py";
|
|
};
|
|
})
|