Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 58 lines 1.2 kB view raw
1{ lib 2, async-timeout 3, btsocket 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pyric 8, pytestCheckHook 9, pythonOlder 10, usb-devices 11}: 12 13buildPythonPackage rec { 14 pname = "bluetooth-auto-recovery"; 15 version = "1.2.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-uPa8iXG++doRMAK83NSnqiqnZSIjdL7zMTkjdRrSjtA="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 async-timeout 33 btsocket 34 pyric 35 usb-devices 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace pyproject.toml \ 44 --replace " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" "" 45 ''; 46 47 pythonImportsCheck = [ 48 "bluetooth_auto_recovery" 49 ]; 50 51 meta = with lib; { 52 description = "Library for recovering Bluetooth adapters"; 53 homepage = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery"; 54 changelog = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/blob/v${version}/CHANGELOG.md"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}