mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
Diff: https://github.com/CycloneDX/cyclonedx-python/compare/v7.3.0...v7.3.1 Changelog: https://github.com/CycloneDX/cyclonedx-python/releases/tag/v7.3.1
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "cyclonedx-python";
|
|
version = "7.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CycloneDX";
|
|
repo = "cyclonedx-python";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-BBnWnxhi7vDfzdFdimncy8u3djW2K3TooYxNBnAkEf8=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
})
|