Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.{sseclient-py,python-nest}: init #98641

Merged
merged 3 commits into from Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/python-nest/default.nix
@@ -0,0 +1,25 @@
{ buildPythonPackage, fetchPypi, lib, python, python-dateutil, requests
, six, sseclient-py }:

buildPythonPackage rec {
pname = "python-nest";
version = "4.1.0";

src = fetchPypi {
inherit pname version;
sha256 = "12iyypbl92ybh8w1bf4z0c2g0sb9id2c07c89vzvnlxgjylw3wbi";
};

propagatedBuildInputs = [ python-dateutil requests six sseclient-py ];
# has no tests
doCheck = false;
JamieMagee marked this conversation as resolved.
Show resolved Hide resolved
pythonImportsCheck = [ "nest" ];
JamieMagee marked this conversation as resolved.
Show resolved Hide resolved

meta = with lib; {
description =
"Python API and command line tool for talking to the Nest™ Thermostat";
homepage = "https://github.com/jkoelker/python-nest";
license = licenses.cc-by-nc-sa-40;
maintainers = with maintainers; [ jamiemagee ];
};
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/sseclient-py/default.nix
@@ -0,0 +1,25 @@
{ buildPythonPackage, fetchFromGitHub, lib, python }:

buildPythonPackage rec {
pname = "sseclient-py";
version = "1.7";

src = fetchFromGitHub {
owner = "mpetazzoni";
repo = "sseclient";
rev = "sseclient-py-${version}";
sha256 = "0iar4w8gryhjzqwy5k95q9gsv6xpmnwxkpz33418nw8hxlp86wfl";
};

# based on tox.ini
checkPhase = ''
${python.interpreter} tests/unittests.py
'';

meta = with lib; {
description = "Pure-Python Server Side Events (SSE) client";
homepage = "https://github.com/mpetazzoni/sseclient";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -526,7 +526,7 @@
"nederlandse_spoorwegen" = ps: with ps; [ ]; # missing inputs: nsapi
"nello" = ps: with ps; [ ]; # missing inputs: pynello
"ness_alarm" = ps: with ps; [ ]; # missing inputs: nessclient
"nest" = ps: with ps; [ ]; # missing inputs: python-nest
"nest" = ps: with ps; [ python-nest ];
"netatmo" = ps: with ps; [ aiohttp-cors hass-nabucasa pyatmo ];
"netdata" = ps: with ps; [ ]; # missing inputs: netdata
"netgear" = ps: with ps; [ ]; # missing inputs: pynetgear
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -5756,6 +5756,8 @@ in {

python-multipart = callPackage ../development/python-modules/python-multipart { };

python-nest = callPackage ../development/python-modules/python-nest { };

pythonnet = callPackage
../development/python-modules/pythonnet { # `mono >= 4.6` required to prevent crashes encountered with earlier versions.
mono = pkgs.mono4;
Expand Down Expand Up @@ -6762,6 +6764,8 @@ in {

sseclient = callPackage ../development/python-modules/sseclient { };

sseclient-py = callPackage ../development/python-modules/sseclient-py { };

sshpubkeys = callPackage ../development/python-modules/sshpubkeys { };

sshtunnel = callPackage ../development/python-modules/sshtunnel { };
Expand Down