diff --git a/pkgs/development/python-modules/xiaomi-ble/default.nix b/pkgs/development/python-modules/xiaomi-ble/default.nix index 4209ceb2e283..2cf0a8de509d 100644 --- a/pkgs/development/python-modules/xiaomi-ble/default.nix +++ b/pkgs/development/python-modules/xiaomi-ble/default.nix @@ -11,6 +11,7 @@ orjson, poetry-core, pycryptodomex, + pytest-cov-stub, pytestCheckHook, pythonOlder, sensor-state-data, @@ -30,11 +31,6 @@ 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" ]; @@ -51,7 +47,10 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "xiaomi_ble" ]; @@ -59,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 ]; }; }