c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
51 lines
947 B
Nix
51 lines
947 B
Nix
{ lib
|
|
, aiohttp
|
|
, bidict
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, humanize
|
|
, lxml
|
|
, pythonOlder
|
|
, requests
|
|
, slixmpp
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gehomesdk";
|
|
version = "0.5.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-V8vwsLIO44q2ms/segTZ70DUVb7BNuxYZ8vX9KPNP4c=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/simbaja/gehome/blob/master/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|