2021-12-24 04:21:11 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, bidict
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, humanize
|
|
|
|
, lxml
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, slixmpp
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gehomesdk";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.5.9";
|
2021-12-24 04:21:11 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-V8vwsLIO44q2ms/segTZ70DUVb7BNuxYZ8vX9KPNP4c=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/simbaja/gehome/blob/master/CHANGELOG.md";
|
2021-12-24 04:21:11 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|