1{ 2 lib, 3 async-interrupt, 4 async-timeout, 5 bleak, 6 bleak-retry-connector, 7 buildPythonPackage, 8 cbor2, 9 fetchFromGitHub, 10 poetry-core, 11 pytest-cov-stub, 12 pytestCheckHook, 13 pythonOlder, 14}: 15 16buildPythonPackage rec { 17 pname = "airthings-ble"; 18 version = "1.0.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "vincegio"; 25 repo = "airthings-ble"; 26 tag = version; 27 hash = "sha256-RKvQ3w3unDk/U6dz3r0Pn3ppVA6ZGxUoyuVk5jbI8jc="; 28 }; 29 30 build-system = [ poetry-core ]; 31 32 dependencies = [ 33 async-interrupt 34 bleak 35 bleak-retry-connector 36 cbor2 37 ]; 38 39 nativeCheckInputs = [ 40 pytest-cov-stub 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "airthings_ble" ]; 45 46 meta = with lib; { 47 description = "Library for Airthings BLE devices"; 48 homepage = "https://github.com/vincegio/airthings-ble"; 49 changelog = "https://github.com/vincegio/airthings-ble/releases/tag/${version}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}