1{ lib 2, aiohttp 3, attrs 4, backoff 5, backports-strenum 6, boto3 7, buildPythonPackage 8, fetchFromGitHub 9, poetry-core 10, pyhumps 11, pytest-asyncio 12, pytestCheckHook 13, pythonOlder 14, warrant-lite 15}: 16 17buildPythonPackage rec { 18 pname = "pyoverkiz"; 19 version = "1.13.2"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "iMicknl"; 26 repo = "python-overkiz-api"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-WGFRZhnlTDC9uv9N4sKznIdgjBwpnuT9Gsa8hdlnPAE="; 29 }; 30 31 postPatch = '' 32 substituteInPlace pyproject.toml \ 33 --replace 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"' 34 ''; 35 36 nativeBuildInputs = [ 37 poetry-core 38 ]; 39 40 propagatedBuildInputs = [ 41 aiohttp 42 attrs 43 backoff 44 backports-strenum 45 boto3 46 pyhumps 47 warrant-lite 48 ]; 49 50 nativeCheckInputs = [ 51 pytest-asyncio 52 pytestCheckHook 53 ]; 54 55 pythonImportsCheck = [ 56 "pyoverkiz" 57 ]; 58 59 meta = with lib; { 60 description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs"; 61 homepage = "https://github.com/iMicknl/python-overkiz-api"; 62 changelog = "https://github.com/iMicknl/python-overkiz-api/releases/tag/v${version}"; 63 license = with licenses; [ mit ]; 64 maintainers = with maintainers; [ fab ]; 65 }; 66}