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