summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pycomfoconnect/default.nix
blob: a325583648ffb1e4d065df3ac6fef14c3c1c359b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, protobuf
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pycomfoconnect";
  version = "0.5.1";
  format = "setuptools";

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "michaelarnauts";
    repo = "comfoconnect";
    rev = "refs/tags/${version}";
    hash = "sha256-I/0vCgSEi6mgYg1fMH4Ha7PoonewtqYYsvXZT8y4rJE=";
  };

  propagatedBuildInputs = [
    protobuf
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "pycomfoconnect"
  ];

  meta = with lib; {
    description = "Python module to interact with ComfoAir Q350/450/600 units";
    homepage = "https://github.com/michaelarnauts/comfoconnect";
    changelog = "https://github.com/michaelarnauts/comfoconnect/releases/tag/${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}