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