python311Packages.justext: migate to pytest-cov-stub

This commit is contained in:
Peder Bergebakken Sundt 2024-08-06 23:36:26 +02:00
parent 2246da96f4
commit 07bbd20de4

View File

@ -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" ];