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, cryptography 7, fetchFromGitHub 8, lru-dict 9, poetry-core 10, pytest-asyncio 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "yalexs-ble"; 17 version = "2.1.17"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "bdraco"; 24 repo = pname; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-mN3/spDTWJfSCsKcRV24+tIjWmxI1gsO5qGuAZykWY0="; 27 }; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 propagatedBuildInputs = [ 34 async-timeout 35 bleak 36 bleak-retry-connector 37 cryptography 38 lru-dict 39 ]; 40 41 nativeCheckInputs = [ 42 pytest-asyncio 43 pytestCheckHook 44 ]; 45 46 postPatch = '' 47 substituteInPlace pyproject.toml \ 48 --replace " --cov=yalexs_ble --cov-report=term-missing:skip-covered" "" 49 ''; 50 51 pythonImportsCheck = [ 52 "yalexs_ble" 53 ]; 54 55 meta = with lib; { 56 description = "Library for Yale BLE devices"; 57 homepage = "https://github.com/bdraco/yalexs-ble"; 58 changelog = "https://github.com/bdraco/yalexs-ble/blob/v${version}/CHANGELOG.md"; 59 license = with licenses; [ gpl3Only ]; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}