summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-nest/default.nix
blob: 3869cbd3c493f0022a2f0a0bce067609ac094049 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  python-dateutil,
  requests,
  six,
  sseclient-py,
}:

buildPythonPackage rec {
  pname = "python-nest";
  version = "4.2.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-01hoZbDssbJ10NA72gOtlzjZMGjsUBUoVDVM35uAOLU=";
  };

  propagatedBuildInputs = [
    python-dateutil
    requests
    six
    sseclient-py
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "nest" ];

  meta = {
    description = "Python API and command line tool for talking to the Nest™ Thermostat";
    homepage = "https://github.com/jkoelker/python-nest";
    license = lib.licenses.cc-by-nc-sa-40;
    maintainers = with lib.maintainers; [ jamiemagee ];
  };
}