at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 httpx, 8 pytest-asyncio, 9 pytest-httpx, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "iceportal"; 15 version = "1.2.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "home-assistant-ecosystem"; 22 repo = "python-iceportal"; 23 tag = version; 24 hash = "sha256-kpAUgGi2fAHzQYuZAaQW9wdrYjwbduRsoTwSuzcjJa8="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 dependencies = [ httpx ]; 30 31 nativeCheckInputs = [ 32 pytest-asyncio 33 pytest-httpx 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "iceportal" ]; 38 39 meta = with lib; { 40 description = "Library for getting data from the ICE Portal"; 41 homepage = "https://github.com/home-assistant-ecosystem/python-iceportal"; 42 changelog = "https://github.com/home-assistant-ecosystem/python-iceportal/releases/tag/${version}"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}