Merge pull request #98641 from JamieMagee/python-nest

pythonPackages.{sseclient-py,python-nest}: init
This commit is contained in:
Martin Weinelt
2020-10-04 04:25:37 +02:00
committed by GitHub
4 changed files with 55 additions and 1 deletions

View File

@@ -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;
pythonImportsCheck = [ "nest" ];
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 ];
};
}

View File

@@ -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 ];
};
}