2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
bidict,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
humanize,
|
|
|
|
lxml,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
slixmpp,
|
|
|
|
websockets,
|
2021-12-24 04:21:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gehomesdk";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.28";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-TAPuP0VFhKuWDzko/+Upq6GDGZJO9y6GuuV6GsSqi2I=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2021-12-24 04:21:11 +00:00
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gehomesdk" ];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "gehome-appliance-data";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
}
|