diff --git a/pkgs/development/python-modules/wheel-filename/default.nix b/pkgs/development/python-modules/wheel-filename/default.nix index 81a391a79093..303008d4d254 100644 --- a/pkgs/development/python-modules/wheel-filename/default.nix +++ b/pkgs/development/python-modules/wheel-filename/default.nix @@ -4,6 +4,7 @@ fetchFromGitHub, fetchpatch, pytestCheckHook, + pytest-cov-stub, pythonOlder, setuptools, wheel, @@ -36,12 +37,10 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ pytestCheckHook ]; - - postPatch = '' - substituteInPlace tox.ini \ - --replace " --cov=wheel_filename --no-cov-on-fail" "" - ''; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; pythonImportsCheck = [ "wheel_filename" ];