Commit d0099d20 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.appthreat-vulnerability-db: allow later semver releases

parent 6d934088
Loading
Loading
Loading
Loading
+17 −5
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
, packageurl-python
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, semver
, tabulate
}:
@@ -27,6 +28,22 @@ buildPythonPackage rec {
    hash = "sha256-lbaDoLEOMzMGwqBx6gBynVpXz/NM/uCJELwd4d1IEwk=";
  };

  postPatch = ''
    substituteInPlace pytest.ini \
      --replace " --cov-append --cov-report term --cov vdb" ""
    # https://github.com/AppThreat/vulnerability-db/pull/48
    substituteInPlace vdb/lib/utils.py \
      --replace "isvalid(" "is_valid("
  '';

  pythonRelaxDeps = [
    "semver"
  ];

  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    appdirs
    cvss
@@ -42,11 +59,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pytest.ini \
      --replace " --cov-append --cov-report term --cov vdb" ""
  '';

  preCheck = ''
    export HOME=$(mktemp -d);
  '';