python312Packages.sensirion-ble: enable tests
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user