From 6207343004adfa0eb8793c4a59ffd67fbbf33f69 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Dec 2024 12:51:05 +0100 Subject: [PATCH] python312Packages.inkbird-ble: migrate to pytest-cov-stub --- .../python-modules/inkbird-ble/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/inkbird-ble/default.nix b/pkgs/development/python-modules/inkbird-ble/default.nix index 83eb6790aaed..9d2979024029 100644 --- a/pkgs/development/python-modules/inkbird-ble/default.nix +++ b/pkgs/development/python-modules/inkbird-ble/default.nix @@ -6,6 +6,7 @@ fetchFromGitHub, home-assistant-bluetooth, poetry-core, + pytest-cov-stub, pytestCheckHook, pythonOlder, sensor-state-data, @@ -34,12 +35,10 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ pytestCheckHook ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=inkbird_ble --cov-report=term-missing:skip-covered" "" - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "inkbird_ble" ];