diff --git a/pkgs/development/python-modules/justext/default.nix b/pkgs/development/python-modules/justext/default.nix index cd2e6c933a6d..299894cae220 100644 --- a/pkgs/development/python-modules/justext/default.nix +++ b/pkgs/development/python-modules/justext/default.nix @@ -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" ];