Merge pull request #151431 from fabaff/gehomesdk
python3Packages.gehomesdk: init at 0.4.22, python3Packages.gekitchen: init at 0.2.19
This commit is contained in:
commit
f11c920a4e
50
pkgs/development/python-modules/gehomesdk/default.nix
Normal file
50
pkgs/development/python-modules/gehomesdk/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, bidict
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, humanize
|
||||
, lxml
|
||||
, pythonOlder
|
||||
, requests
|
||||
, slixmpp
|
||||
, websockets
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gehomesdk";
|
||||
version = "0.4.22";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-3HErbW9/YD8Jd6zr5O2hjoLZ9x5P/vzZLjqPmSm09EM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
bidict
|
||||
humanize
|
||||
lxml
|
||||
requests
|
||||
slixmpp
|
||||
websockets
|
||||
];
|
||||
|
||||
# Tests are not shipped and source is not tagged
|
||||
# https://github.com/simbaja/gehome/issues/32
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"gehomesdk"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python SDK for GE smart appliances";
|
||||
homepage = "https://github.com/simbaja/gehome";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
53
pkgs/development/python-modules/gekitchen/default.nix
Normal file
53
pkgs/development/python-modules/gekitchen/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, bidict
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, humanize
|
||||
, lxml
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, slixmpp
|
||||
, websockets
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gekitchen";
|
||||
version = "0.2.19";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ajmarks";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-eKGundh7j9LqFd71bx86rNBVu2iAcgLN25JfFa39+VA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
bidict
|
||||
humanize
|
||||
lxml
|
||||
requests
|
||||
slixmpp
|
||||
websockets
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"gekitchen"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python SDK for GE smart appliances";
|
||||
homepage = "https://github.com/ajmarks/gekitchen";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -3086,6 +3086,10 @@ in {
|
||||
|
||||
geeknote = callPackage ../development/python-modules/geeknote { };
|
||||
|
||||
gehomesdk = callPackage ../development/python-modules/gehomesdk { };
|
||||
|
||||
gekitchen = callPackage ../development/python-modules/gekitchen { };
|
||||
|
||||
gemfileparser = callPackage ../development/python-modules/gemfileparser { };
|
||||
|
||||
genanki = callPackage ../development/python-modules/genanki { };
|
||||
|
Loading…
Reference in New Issue
Block a user