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