1{ lib 2, aiohttp 3, aioresponses 4, async-timeout 5, buildPythonPackage 6, fetchFromGitHub 7, orjson 8, pytest-aiohttp 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "pydeconz"; 15 version = "105"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "Kane610"; 22 repo = "deconz"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-8GQJ4PCl8te3sovC5FwWoaQnXIRR27b7gPwfmyPRVBE="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 async-timeout 30 orjson 31 ]; 32 33 checkInputs = [ 34 aioresponses 35 pytest-aiohttp 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "pydeconz" 41 ]; 42 43 meta = with lib; { 44 description = "Python library wrapping the Deconz REST API"; 45 homepage = "https://github.com/Kane610/deconz"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}