From 82b2ac13af0505cc3ec67ffd7eae7b59d0a786ab Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Dec 2024 11:21:02 +0100 Subject: [PATCH] python312Packages.thermopro-ble: migrate to pytest-cov-stub --- .../python-modules/thermopro-ble/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/thermopro-ble/default.nix b/pkgs/development/python-modules/thermopro-ble/default.nix index a3fbf15c4973..ff83d59a08a3 100644 --- a/pkgs/development/python-modules/thermopro-ble/default.nix +++ b/pkgs/development/python-modules/thermopro-ble/default.nix @@ -5,6 +5,7 @@ buildPythonPackage, fetchFromGitHub, poetry-core, + pytest-cov-stub, pytestCheckHook, pythonOlder, sensor-state-data, @@ -32,12 +33,10 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ pytestCheckHook ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=thermopro_ble --cov-report=term-missing:skip-covered" "" - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "thermopro_ble" ];