mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #98641 from JamieMagee/python-nest
pythonPackages.{sseclient-py,python-nest}: init
This commit is contained in:
25
pkgs/development/python-modules/python-nest/default.nix
Normal file
25
pkgs/development/python-modules/python-nest/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/sseclient-py/default.nix
Normal file
25
pkgs/development/python-modules/sseclient-py/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user