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