sbom4python: init at 0.12.1

This commit is contained in:
Pol Dellaiera 2025-01-31 09:35:19 +01:00
parent c9b06bac42
commit 0d1c991cd6

View File

@ -0,0 +1,53 @@
{
lib,
python3Packages,
fetchFromGitHub,
sbom2dot,
sbom4files,
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
pname = "sbom4python";
version = "0.12.1";
pyproject = true;
src = fetchFromGitHub {
owner = "anthonyharrison";
repo = "sbom4python";
tag = "v${version}";
hash = "sha256-tp5sg3Z3tczWxfYQcpeKMlin1s7PGUqjG3h4ZsAfKHs=";
};
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
importlib-metadata
lib4package
lib4sbom
sbom2dot
sbom4files
setuptools # for pkg_resources
toml
];
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
pythonImportsCheck = [
"sbom4python"
];
meta = {
changelog = "https://github.com/anthonyharrison/sbom4python/releases/tag/v${version}";
description = "A tool to generate a SBOM (Software Bill of Materials) for an installed Python module";
homepage = "https://github.com/anthonyharrison/sbom4python";
license = lib.licenses.asl20;
mainProgram = "sbom4python";
maintainers = with lib.maintainers; [ drupol ];
};
}