2025-01-31 09:35:19 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
|
|
|
sbom2dot,
|
|
|
|
sbom4files,
|
|
|
|
versionCheckHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "sbom4python";
|
2025-06-26 17:45:15 +00:00
|
|
|
version = "0.12.4";
|
2025-01-31 09:35:19 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anthonyharrison";
|
|
|
|
repo = "sbom4python";
|
|
|
|
tag = "v${version}";
|
2025-06-26 17:45:15 +00:00
|
|
|
hash = "sha256-eiizZEc5OIBfyGlSCer2zcrEFd2qpxmMjxV8e9W3gdk=";
|
2025-01-31 09:35:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
|
|
|
importlib-metadata
|
|
|
|
lib4package
|
|
|
|
lib4sbom
|
|
|
|
sbom2dot
|
|
|
|
sbom4files
|
|
|
|
setuptools # for pkg_resources
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
versionCheckHook
|
|
|
|
];
|
2025-04-05 14:02:09 +02:00
|
|
|
versionCheckProgramArg = "--version";
|
2025-01-31 09:35:19 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sbom4python"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2025-03-12 23:24:35 +00:00
|
|
|
changelog = "https://github.com/anthonyharrison/sbom4python/releases/tag/${src.tag}";
|
2025-06-05 09:11:29 -07:00
|
|
|
description = "Tool to generate a SBOM (Software Bill of Materials) for an installed Python module";
|
2025-01-31 09:35:19 +01:00
|
|
|
homepage = "https://github.com/anthonyharrison/sbom4python";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "sbom4python";
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
};
|
|
|
|
}
|