From 9e833a5b53521b1486aab608a2c9dfcaf7b131af Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 2 Jun 2025 05:56:37 +0200 Subject: [PATCH] python313Packages.pypinyin: migrate to pytest-cov-stub --- pkgs/development/python-modules/pypinyin/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pypinyin/default.nix b/pkgs/development/python-modules/pypinyin/default.nix index 64f7b232b2f0..8e6f60b1a680 100644 --- a/pkgs/development/python-modules/pypinyin/default.nix +++ b/pkgs/development/python-modules/pypinyin/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + pytest-cov-stub, pythonOlder, }: @@ -20,12 +21,10 @@ buildPythonPackage rec { hash = "sha256-kA6h2CPGhoZt8h3KEttegHhmMqVc72IkrkA3PonY3sY="; }; - postPatch = '' - substituteInPlace pytest.ini --replace \ - "--cov-report term-missing" "" - ''; - - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; pytestFlagsArray = [ "tests" ];