Commit af1f0a8d authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.appthreat-vulnerability-db: migate to pytest-cov-stub

parent 205d47cc
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  packageurl-python,
  pydantic,
  pytestCheckHook,
  pytest-cov-stub,
  pythonOlder,
  rich,
  semver,
@@ -32,11 +33,6 @@ buildPythonPackage rec {
    hash = "sha256-lgt609UDuHTGQTTrpvxNvgUk6GU+TYqwc19dzatI4Io=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail " --cov-report=term-missing --no-cov-on-fail --cov vdb" ""
  '';

  pythonRelaxDeps = [
    "msgpack"
    "semver"
@@ -59,7 +55,10 @@ buildPythonPackage rec {
    tabulate
  ] ++ httpx.optional-dependencies.http2;

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

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