{ lib, bluetooth-data-tools, bluetooth-sensor-state-data, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-cov-stub, pytestCheckHook, pythonOlder, sensor-state-data, }: buildPythonPackage rec { pname = "qingping-ble"; version = "1.0.1"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bluetooth-devices"; repo = "qingping-ble"; tag = "v${version}"; hash = "sha256-YESOD2wdSD9Z7cHgzQq3Dkem0yxerOBsX9rFNEbBZfo="; }; build-system = [ poetry-core ]; dependencies = [ bluetooth-data-tools bluetooth-sensor-state-data sensor-state-data ]; nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ]; pythonImportsCheck = [ "qingping_ble" ]; meta = with lib; { description = "Library for Qingping BLE devices"; homepage = "https://github.com/bluetooth-devices/qingping-ble"; changelog = "https://github.com/Bluetooth-Devices/qingping-ble/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }