From f8b6887e5003cfa7076aa46d24a37588363237dc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Dec 2024 11:55:04 +0100 Subject: [PATCH] python312Packages.ruuvitag-ble: migrate to pytest-cov-stub --- .../python-modules/ruuvitag-ble/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/ruuvitag-ble/default.nix b/pkgs/development/python-modules/ruuvitag-ble/default.nix index 98a62ee95fb7..3727519c563f 100644 --- a/pkgs/development/python-modules/ruuvitag-ble/default.nix +++ b/pkgs/development/python-modules/ruuvitag-ble/default.nix @@ -6,6 +6,7 @@ fetchFromGitHub, hatchling, home-assistant-bluetooth, + 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=ruuvitag_ble --cov-report=term-missing:skip-covered" "" - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "ruuvitag_ble" ];