about summary refs log tree commit diff
path: root/pkgs/development/python-modules/wheel-inspect/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/wheel-inspect/default.nix')
-rw-r--r--pkgs/development/python-modules/wheel-inspect/default.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix
index 683cec66d3a5b..ed966cace7130 100644
--- a/pkgs/development/python-modules/wheel-inspect/default.nix
+++ b/pkgs/development/python-modules/wheel-inspect/default.nix
@@ -7,9 +7,9 @@
   hatchling,
   headerparser,
   jsonschema,
-  pythonRelaxDepsHook,
   packaging,
   pytestCheckHook,
+  pytest-cov-stub,
   pythonOlder,
   readme-renderer,
   setuptools,
@@ -30,11 +30,6 @@ buildPythonPackage rec {
     hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
   };
 
-  postPatch = ''
-    substituteInPlace tox.ini \
-      --replace-fail "--cov=wheel_inspect --no-cov-on-fail" ""
-  '';
-
   pythonRelaxDeps = [
     "entry-points-txt"
     "headerparser"
@@ -42,7 +37,6 @@ buildPythonPackage rec {
 
   nativeBuildInputs = [
     hatchling
-    pythonRelaxDepsHook
   ];
 
   propagatedBuildInputs = [
@@ -54,7 +48,10 @@ buildPythonPackage rec {
     wheel-filename
   ];
 
-  nativeCheckInputs = [ pytestCheckHook ];
+  nativeCheckInputs = [
+    pytestCheckHook
+    pytest-cov-stub
+  ];
 
   checkInputs = [
     setuptools