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