1{ lib
2, aenum
3, buildPythonPackage
4, fetchFromGitHub
5, httpx
6, poetry-core
7, pydantic
8, pytest-asyncio
9, pytest-httpx
10, pytestCheckHook
11, pythonOlder
12, rich
13}:
14
15buildPythonPackage rec {
16 pname = "intellifire4py";
17 version = "3.1.30";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "jeeftor";
24 repo = pname;
25 rev = "refs/tags/v${version}";
26 hash = "sha256-CIcudKyRPVJX6QvWk6dBbYnO5EULREDhaflJTAfJEvc=";
27 };
28
29 nativeBuildInputs = [
30 poetry-core
31 ];
32
33 propagatedBuildInputs = [
34 aenum
35 httpx
36 pydantic
37 rich
38 ];
39
40 pythonImportsCheck = [
41 "intellifire4py"
42 ];
43 nativeCheckInputs = [
44 pytest-asyncio
45 pytest-httpx
46 pytestCheckHook
47 ];
48
49 meta = with lib; {
50 description = "Module to read Intellifire fireplace status data";
51 homepage = "https://github.com/jeeftor/intellifire4py";
52 changelog = "https://github.com/jeeftor/intellifire4py/blob/${version}/CHANGELOG";
53 license = with licenses; [ mit ];
54 maintainers = with maintainers; [ fab ];
55 };
56}