Unverified Commit 7efab72e authored by Martin Weinelt's avatar Martin Weinelt
Browse files

sbomnix: use top-level callPackage

and migrate to PEP517 python lingo.
parent c2970dbd
Loading
Loading
Loading
Loading
+6 −22
Original line number Diff line number Diff line
@@ -5,28 +5,11 @@
  grype,
  nix,
  nix-visualize,
  python,
  python3,
  vulnix,
  # python libs
  beautifulsoup4,
  colorlog,
  dfdiskcache,
  filelock,
  graphviz,
  numpy,
  packageurl-python,
  packaging,
  pandas,
  pyrate-limiter,
  requests,
  requests-cache,
  requests-ratelimiter,
  reuse,
  setuptools,
  tabulate,
}:

python.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
  pname = "sbomnix";
  version = "1.7.2";
  pyproject = true;
@@ -49,7 +32,7 @@ python.pkgs.buildPythonApplication rec {
      lib.makeBinPath [
        git
        nix
        graphviz
        python3.pkgs.graphviz
        nix-visualize
        vulnix
        grype
@@ -57,9 +40,9 @@ python.pkgs.buildPythonApplication rec {
    }"
  ];

  nativeBuildInputs = [ setuptools ];
  build-system = [ python3.pkgs.setuptools ];

  propagatedBuildInputs = [
  dependencies = with python3.pkgs; [
    beautifulsoup4
    colorlog
    dfdiskcache
@@ -78,6 +61,7 @@ python.pkgs.buildPythonApplication rec {
  ];

  pythonImportsCheck = [ "sbomnix" ];

  # Tests require network access
  doCheck = false;

+1 −1
Original line number Diff line number Diff line
@@ -7647,7 +7647,7 @@ with pkgs;
    buildDocs = false;
  };
  sbomnix = python3.pkgs.callPackage ../tools/security/sbomnix { };
  sbomnix = callPackage ../tools/security/sbomnix { };
  seer = libsForQt5.callPackage ../development/tools/misc/seer { };