python312Packages.xiaomi-ble: refactor

This commit is contained in:
Fabian Affolter
2024-12-12 05:53:55 +01:00
parent 50bc93ce73
commit ce14e055da
@@ -11,6 +11,7 @@
orjson,
poetry-core,
pycryptodomex,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -30,14 +31,8 @@ buildPythonPackage rec {
hash = "sha256-7/4Ea8IiRPxhgMiazSylYZAmznqIula2yCEUAyIHBBg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
pythonRelaxDeps = [ "pycryptodomex" ];
dependencies = [
@@ -52,7 +47,10 @@ buildPythonPackage rec {
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "xiaomi_ble" ];
@@ -60,7 +58,7 @@ buildPythonPackage rec {
description = "Library for Xiaomi BLE devices";
homepage = "https://github.com/Bluetooth-Devices/xiaomi-ble";
changelog = "https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}