1{ 2 lib, 3 asyncclick, 4 bleak, 5 bleak-retry-connector, 6 buildPythonPackage, 7 fetchFromGitHub, 8 poetry-core, 9 pytest-asyncio, 10 pytestCheckHook, 11 pythonOlder, 12 tzlocal, 13}: 14 15buildPythonPackage rec { 16 pname = "gardena-bluetooth"; 17 version = "1.6.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.10"; 21 22 src = fetchFromGitHub { 23 owner = "elupus"; 24 repo = "gardena-bluetooth"; 25 tag = version; 26 hash = "sha256-L726A0o9TIxFjHOxx0e42RIj4XMOdeZTJE2gWo6OhG4="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 bleak 33 bleak-retry-connector 34 tzlocal 35 ]; 36 37 optional-dependencies = { 38 cli = [ asyncclick ]; 39 }; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 pytest-asyncio 44 ]; 45 46 pythonImportsCheck = [ "gardena_bluetooth" ]; 47 48 meta = with lib; { 49 description = "Module for interacting with Gardena Bluetooth"; 50 homepage = "https://github.com/elupus/gardena-bluetooth"; 51 changelog = "https://github.com/elupus/gardena-bluetooth/releases/tag/${version}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}