2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, sseclient-py
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-nest";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "4.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-01hoZbDssbJ10NA72gOtlzjZMGjsUBUoVDVM35uAOLU=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
sseclient-py
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
2020-10-07 09:15:18 +00:00
|
|
|
doCheck = false;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nest"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Python API and command line tool for talking to the Nest™ Thermostat";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://github.com/jkoelker/python-nest";
|
|
|
|
license = licenses.cc-by-nc-sa-40;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|