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, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pytestCheckHook, pytestCheckHook,
pytest-cov-stub,
lxml, lxml,
lxml-html-clean, lxml-html-clean,
}: }:
@ -24,13 +25,10 @@ buildPythonPackage rec {
lxml-html-clean lxml-html-clean
]; ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [
pytestCheckHook
# patch out coverage report pytest-cov-stub
postPatch = '' ];
substituteInPlace setup.cfg \
--replace-fail " --cov=justext --cov-report=term-missing --no-cov-on-fail" ""
'';
pythonImportsCheck = [ "justext" ]; pythonImportsCheck = [ "justext" ];