at 23.05-pre 916 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, httpx 5, poetry-core 6, pythonOlder 7, pytest-asyncio 8, pytest-httpx 9, pytestCheckHook 10, yarl 11}: 12 13buildPythonPackage rec { 14 pname = "elmax"; 15 version = "0.1.5"; 16 format = "pyproject"; 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "home-assistant-ecosystem"; 21 repo = "python-elmax"; 22 rev = version; 23 sha256 = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ 29 httpx 30 yarl 31 ]; 32 33 checkInputs = [ 34 pytest-asyncio 35 pytest-httpx 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "elmax" ]; 40 41 meta = with lib; { 42 description = "Python API client for the Elmax Cloud services"; 43 homepage = "https://github.com/home-assistant-ecosystem/python-elmax"; 44 license = with licenses; [ asl20 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}