diff --git a/pkgs/development/python-modules/sensirion-ble/default.nix b/pkgs/development/python-modules/sensirion-ble/default.nix index 460d9bd2b1ad..17e583d6b0f0 100644 --- a/pkgs/development/python-modules/sensirion-ble/default.nix +++ b/pkgs/development/python-modules/sensirion-ble/default.nix @@ -1,13 +1,15 @@ { lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, buildPythonPackage, fetchFromGitHub, hatchling, - bluetooth-data-tools, - bluetooth-sensor-state-data, home-assistant-bluetooth, - sensor-state-data, + pytest-cov-stub, + pytestCheckHook, pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -24,11 +26,6 @@ buildPythonPackage rec { hash = "sha256-VeUfrQ/1Hqs9yueUKcv/ZpCDEEy84VDcZpuTT4fXSGw="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=sensirion_ble --cov-report=term-missing:skip-covered" "" - ''; - build-system = [ hatchling ]; dependencies = [ @@ -38,6 +35,11 @@ buildPythonPackage rec { sensor-state-data ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; + pythonImportsCheck = [ "sensirion_ble" ]; meta = with lib; {