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