From 162eb6d3af4b5bee6545293b975afee3089dbf9c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Dec 2024 13:12:36 +0100 Subject: [PATCH] python312Packages.ld2410-ble: migrate to pytest-cov-stub --- .../python-modules/ld2410-ble/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/ld2410-ble/default.nix b/pkgs/development/python-modules/ld2410-ble/default.nix index 183bff598a2e..a811cdb3171a 100644 --- a/pkgs/development/python-modules/ld2410-ble/default.nix +++ b/pkgs/development/python-modules/ld2410-ble/default.nix @@ -1,11 +1,12 @@ { lib, async-timeout, - bleak, bleak-retry-connector, + bleak, buildPythonPackage, fetchFromGitHub, poetry-core, + pytest-cov-stub, pytestCheckHook, pythonOlder, }: @@ -24,11 +25,6 @@ buildPythonPackage rec { hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" "" - ''; - build-system = [ poetry-core ]; dependencies = [ @@ -37,7 +33,10 @@ buildPythonPackage rec { bleak-retry-connector ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "ld2410_ble" ];