From 07bbd20de4483be39be59f12ea80ff3252414eba Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 6 Aug 2024 23:36:26 +0200 Subject: [PATCH] python311Packages.justext: migate to pytest-cov-stub --- pkgs/development/python-modules/justext/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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" ];