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.4.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.10"; 21 22 src = fetchFromGitHub { 23 owner = "elupus"; 24 repo = "gardena-bluetooth"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-WnurxoSzzNTNxz6S1HSKb/lTuOyox6fG2I0Hlj95Ub0="; 27 }; 28 29 nativeBuildInputs = [ poetry-core ]; 30 31 propagatedBuildInputs = [ 32 bleak 33 bleak-retry-connector 34 tzlocal 35 ]; 36 37 passthru.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}