depot/third_party/nixpkgs/pkgs/tools/misc/cyclonedx-python/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
1 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "cyclonedx-python";
version = "4.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CycloneDX";
repo = "cyclonedx-python";
rev = "refs/tags/v${version}";
hash = "sha256-+XeMRREDX1+v+qOeYiHh7uhadfueYYOxspLY3q1NL6s=";
};
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 = with lib.maintainers; [ xanderio ];
mainProgram = "cyclonedx-py";
};
}