20 , requests-ratelimiter
27 python.pkgs.buildPythonApplication rec {
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-kPjCK9NEs3D0qFsSSVX6MYGKbwqeij0svTfzz5JC4qM=";
38 # Remove documentation as it contains references to nix store
41 find "$out" -name '*.md' ! -name "README.md" -exec rm -f '{}' \;
46 wrapProgram $out/bin/sbomnix \
47 --prefix PATH : ${lib.makeBinPath [nix graphviz]}
48 wrapProgram $out/bin/nixgraph \
49 --prefix PATH : ${lib.makeBinPath [nix graphviz]}
50 wrapProgram $out/bin/vulnxscan \
51 --prefix PATH : ${lib.makeBinPath [grype nix vulnix]}
52 wrapProgram $out/bin/nix_outdated \
53 --prefix PATH : ${lib.makeBinPath [nix-visualize]}
54 wrapProgram $out/bin/provenance \
55 --prefix PATH : ${lib.makeBinPath [nix]}
58 nativeBuildInputs = [ setuptools ];
60 propagatedBuildInputs = [
77 pythonImportsCheck = [ "sbomnix" ];
78 # Tests require network access
82 description = "Utilities to help with software supply chain challenges on nix targets";
83 homepage = "https://github.com/tiiuae/sbomnix";
84 license = with licenses; [ asl20 bsd3 cc-by-30 ];
85 maintainers = with maintainers; [ henrirosten jk ];