2024-07-31 10:19:44 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-04-25 03:57:28 +00:00
|
|
|
pname = "cyclonedx-python";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "4.6.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CycloneDX";
|
|
|
|
repo = "cyclonedx-python";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-EcCxw3SppuGUgN7AIU9NhpRw7dLDhTHHT5emGOgkDFU=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = with python3Packages; [ poetry-core ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dependencies = with python3Packages; [
|
2024-01-25 14:12:00 +00:00
|
|
|
chardet
|
|
|
|
cyclonedx-python-lib
|
2021-04-25 03:57:28 +00:00
|
|
|
packageurl-python
|
2024-01-25 14:12:00 +00:00
|
|
|
pip-requirements-parser
|
2024-07-31 10:19:44 +00:00
|
|
|
packaging
|
|
|
|
tomli
|
|
|
|
] ++ cyclonedx-python-lib.optional-dependencies.validation;
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
pythonImportsCheck = [ "cyclonedx" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
meta = {
|
2021-04-25 03:57:28 +00:00
|
|
|
description = "Creates CycloneDX Software Bill of Materials (SBOM) from Python projects";
|
|
|
|
homepage = "https://github.com/CycloneDX/cyclonedx-python";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/CycloneDX/cyclonedx-python/releases/tag/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
license = lib.licenses.asl20;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = lib.teams.cyberus.members;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cyclonedx-py";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|