1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "heatzypy";
13 version = "2.5.7";
14 pyproject = true;
15
16 disabled = pythonOlder "3.11";
17
18 src = fetchFromGitHub {
19 owner = "Cyr-ius";
20 repo = "heatzypy";
21 tag = version;
22 hash = "sha256-MPieUg5p8j1OTWDwV/IY3dKz8bKcPrRy9tK2iKleEoM=";
23 };
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 dependencies = [ aiohttp ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "heatzypy" ];
36
37 meta = with lib; {
38 description = "Module to interact with Heatzy devices";
39 homepage = "https://github.com/Cyr-ius/heatzypy";
40 changelog = "https://github.com/cyr-ius/heatzypy/releases/tag/${version}";
41 license = licenses.gpl3Plus;
42 maintainers = with maintainers; [ fab ];
43 };
44}