python312Packages.sensirion-ble: enable tests

This commit is contained in:
Fabian Affolter
2024-12-15 11:32:58 +01:00
parent e3065e63ce
commit dbf39d72a9
@@ -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; {