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