Commit 07bbd20d authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.justext: migate to pytest-cov-stub

parent 2246da96
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pytest-cov-stub,
  lxml,
  lxml-html-clean,
}:
@@ -24,13 +25,10 @@ buildPythonPackage rec {
    lxml-html-clean
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  # patch out coverage report
  postPatch = ''
    substituteInPlace setup.cfg \
      --replace-fail " --cov=justext --cov-report=term-missing --no-cov-on-fail" ""
  '';
  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "justext" ];