1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 protobuf,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pycomfoconnect";
11 version = "0.5.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.9";
15
16 src = fetchFromGitHub {
17 owner = "michaelarnauts";
18 repo = "comfoconnect";
19 tag = version;
20 hash = "sha256-I/0vCgSEi6mgYg1fMH4Ha7PoonewtqYYsvXZT8y4rJE=";
21 };
22
23 propagatedBuildInputs = [ protobuf ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "pycomfoconnect" ];
29
30 meta = with lib; {
31 description = "Python module to interact with ComfoAir Q350/450/600 units";
32 homepage = "https://github.com/michaelarnauts/comfoconnect";
33 changelog = "https://github.com/michaelarnauts/comfoconnect/releases/tag/${version}";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}