mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
python311Packages.justext: migate to pytest-cov-stub
This commit is contained in:
parent
2246da96f4
commit
07bbd20de4
@ -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" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user