1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lib4sbom,
7}:
8
9buildPythonPackage rec {
10 pname = "sbom2dot";
11 version = "0.3.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "anthonyharrison";
16 repo = "sbom2dot";
17 tag = "v${version}";
18 hash = "sha256-g6IAGZCLRVxF0f6JEcxNaAKWYlTDt0zYSchsz6hDgdg=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 dependencies = [
26 lib4sbom
27 ];
28
29 pythonImportsCheck = [
30 "sbom2dot"
31 ];
32
33 meta = {
34 changelog = "https://github.com/anthonyharrison/sbom2dot/releases/tag/${src.tag}";
35 description = "Create a dependency graph of the components within a SBOM";
36 homepage = "https://github.com/anthonyharrison/sbom2dot";
37 license = lib.licenses.asl20;
38 mainProgram = "sbom2dot";
39 maintainers = with lib.maintainers; [ ];
40 };
41}