diff --git a/pkgs/development/python-modules/bthome-ble/default.nix b/pkgs/development/python-modules/bthome-ble/default.nix index 8f48d2c0364d..93433f5e53e3 100644 --- a/pkgs/development/python-modules/bthome-ble/default.nix +++ b/pkgs/development/python-modules/bthome-ble/default.nix @@ -6,6 +6,7 @@ cryptography, fetchFromGitHub, poetry-core, + pytest-cov-stub, pytestCheckHook, pythonOlder, pytz, @@ -26,11 +27,6 @@ buildPythonPackage rec { hash = "sha256-TlZyNGfHNKN+6tCKepLS+fbgfq3a1uzeCXl25khl6d8="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" "" - ''; - build-system = [ poetry-core ]; dependencies = [ @@ -41,7 +37,10 @@ buildPythonPackage rec { pytz ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "bthome_ble" ];