at 24.11-pre 1.2 kB view raw
1{ 2 lib, 3 async-timeout, 4 bleak, 5 bleak-retry-connector, 6 buildPythonPackage, 7 fetchFromGitHub, 8 flux-led, 9 poetry-core, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "led-ble"; 16 version = "1.0.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "Bluetooth-Devices"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-8DBA01QjW99OVYI9zC1Q+utnwzc10idUG7y+lmUbO4A="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace " --cov=led_ble --cov-report=term-missing:skip-covered" "" 31 ''; 32 33 nativeBuildInputs = [ poetry-core ]; 34 35 propagatedBuildInputs = [ 36 bleak 37 bleak-retry-connector 38 flux-led 39 ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 pythonImportsCheck = [ "led_ble" ]; 44 45 meta = with lib; { 46 description = "Library for LED BLE devices"; 47 homepage = "https://github.com/Bluetooth-Devices/led-ble"; 48 changelog = "https://github.com/Bluetooth-Devices/led-ble/blob/v${version}/CHANGELOG.md"; 49 license = with licenses; [ mit ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}