at master 1.0 kB view raw
1{ 2 lib, 3 bleak, 4 bleak-retry-connector, 5 buildPythonPackage, 6 fetchFromGitHub, 7 flux-led, 8 poetry-core, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "led-ble"; 16 version = "1.1.7"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.11"; 20 21 src = fetchFromGitHub { 22 owner = "Bluetooth-Devices"; 23 repo = "led-ble"; 24 tag = "v${version}"; 25 hash = "sha256-6vQPsZvBvoLlxzgfnvjnUdkN24tpBZHr62AFcy3s4gE="; 26 }; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ 31 bleak 32 bleak-retry-connector 33 flux-led 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-cov-stub 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "led_ble" ]; 42 43 meta = with lib; { 44 description = "Library for LED BLE devices"; 45 homepage = "https://github.com/Bluetooth-Devices/led-ble"; 46 changelog = "https://github.com/Bluetooth-Devices/led-ble/blob/v${version}/CHANGELOG.md"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}