Merge pull request #113704 from fabaff/pyxiaomigateway
This commit is contained in:
commit
abde39c8e8
30
pkgs/development/python-modules/pyxiaomigateway/default.nix
Normal file
30
pkgs/development/python-modules/pyxiaomigateway/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cryptography
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyxiaomigateway";
|
||||
version = "0.13.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Danielhiversen";
|
||||
repo = "PyXiaomiGateway";
|
||||
rev = version;
|
||||
sha256 = "1xg89sdds04wgil88ihs84cjr3df6lajjbkyb1aymj638ibdyqns";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography ];
|
||||
|
||||
# Tests are not mocking the gateway completely
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "xiaomi_gateway" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to communicate with the Xiaomi Gateway";
|
||||
homepage = "https://github.com/Danielhiversen/PyXiaomiGateway/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -948,7 +948,7 @@
|
||||
"xeoma" = ps: with ps; [ pyxeoma ];
|
||||
"xfinity" = ps: with ps; [ ]; # missing inputs: xfinity-gateway
|
||||
"xiaomi" = ps: with ps; [ ha-ffmpeg ];
|
||||
"xiaomi_aqara" = ps: with ps; [ aiohttp-cors netdisco zeroconf ]; # missing inputs: PyXiaomiGateway
|
||||
"xiaomi_aqara" = ps: with ps; [ pyxiaomigateway aiohttp-cors netdisco zeroconf ];
|
||||
"xiaomi_miio" = ps: with ps; [ construct python-miio ];
|
||||
"xiaomi_tv" = ps: with ps; [ ]; # missing inputs: pymitv
|
||||
"xmpp" = ps: with ps; [ slixmpp ];
|
||||
|
@ -6638,6 +6638,8 @@ in {
|
||||
|
||||
pyxeoma = callPackage ../development/python-modules/pyxeoma { };
|
||||
|
||||
pyxiaomigateway = callPackage ../development/python-modules/pyxiaomigateway { };
|
||||
|
||||
pyxl3 = callPackage ../development/python-modules/pyxl3 { };
|
||||
|
||||
pyxml = disabledIf isPy3k (callPackage ../development/python-modules/pyxml { });
|
||||
|
Loading…
Reference in New Issue
Block a user