1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python-dateutil,
6 requests,
7 six,
8 sseclient-py,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "python-nest";
14 version = "4.2.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-01hoZbDssbJ10NA72gOtlzjZMGjsUBUoVDVM35uAOLU=";
22 };
23
24 propagatedBuildInputs = [
25 python-dateutil
26 requests
27 six
28 sseclient-py
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "nest" ];
35
36 meta = with lib; {
37 description = "Python API and command line tool for talking to the Nest™ Thermostat";
38 homepage = "https://github.com/jkoelker/python-nest";
39 license = licenses.cc-by-nc-sa-40;
40 maintainers = with maintainers; [ jamiemagee ];
41 };
42}