Merge pull request #146811 from fabaff/google-nest

python3Packages.python-google-nest: init at 5.1.1, python3Packages.google-nest-sdm: init 0.3.9
This commit is contained in:
Fabian Affolter 2021-11-27 13:13:09 +01:00 committed by GitHub
commit 24afc211d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 1 deletions

View file

@ -0,0 +1,51 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, google-auth
, google-auth-oauthlib
, google-cloud-pubsub
, pythonOlder
, requests_oauthlib
, pytest-aiohttp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-nest-sdm";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "allenporter";
repo = "python-google-nest-sdm";
rev = version;
sha256 = "sha256-mm1FhR10asxJI8MQfQipqmQbHQfO3z49jpnnrz38Clo=";
};
propagatedBuildInputs = [
aiohttp
google-auth
google-auth-oauthlib
google-cloud-pubsub
requests_oauthlib
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [
"google_nest_sdm"
];
meta = with lib; {
description = "Python module for Google Nest Device Access using the Smart Device Management API";
homepage = "https://github.com/allenporter/python-google-nest-sdm";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "python-google-nest";
version = "5.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "y3BOhorVkJ3rFPifNOopLMqk6y1fHX5vxHGiqWvWHhE=";
};
propagatedBuildInputs = [
requests_oauthlib
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"nest"
];
meta = with lib; {
description = "Python API and command line tool for talking to Nest thermostats";
homepage = "https://github.com/axlan/python-nest/";
license = licenses.cc-by-nc-sa-30;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -560,7 +560,7 @@
"neato" = ps: with ps; [ aiohttp-cors pybotvac ];
"nederlandse_spoorwegen" = ps: with ps; [ nsapi ];
"ness_alarm" = ps: with ps; [ nessclient ];
"nest" = ps: with ps; [ aiohttp-cors ha-ffmpeg python-nest ]; # missing inputs: google-nest-sdm
"nest" = ps: with ps; [ aiohttp-cors google-nest-sdm ha-ffmpeg python-nest ];
"netatmo" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa pyatmo ];
"netdata" = ps: with ps; [ netdata ];
"netgear" = ps: with ps; [ ]; # missing inputs: pynetgear

View file

@ -537,6 +537,7 @@ in with py.pkgs; buildPythonApplication rec {
"namecheapdns"
"neato"
"ness_alarm"
"nest"
"netatmo"
"nexia"
"nightscout"

View file

@ -3278,6 +3278,8 @@ in {
google-i18n-address = callPackage ../development/python-modules/google-i18n-address { };
google-nest-sdm = callPackage ../development/python-modules/google-nest-sdm { };
googlemaps = callPackage ../development/python-modules/googlemaps { };
google-pasta = callPackage ../development/python-modules/google-pasta { };
@ -5843,6 +5845,8 @@ in {
python-glanceclient = callPackage ../development/python-modules/python-glanceclient { };
python-google-nest = callPackage ../development/python-modules/python-google-nest { };
python-heatclient = callPackage ../development/python-modules/python-heatclient { };
python-ipmi = callPackage ../development/python-modules/python-ipmi { };