python-miio: init at 0.4.8

Homeassitant uses this package to control Xiaomi Roborock vacuum
cleaners.
This commit is contained in:
Florian 2020-01-01 13:24:24 +01:00 committed by Jon
parent 775f3e037e
commit c2997409d3
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, appdirs
, click
, construct
, cryptography
, pytest
, zeroconf
, attrs
, pytz
, tqdm
, netifaces
}:
buildPythonPackage rec {
pname = "python-miio";
version = "0.4.8";
src = fetchPypi {
inherit pname version;
sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "Python library for interfacing with Xiaomi smart appliances";
homepage = https://github.com/rytilahti/python-miio;
license = licenses.gpl3;
maintainers = with maintainers; [ flyfloh ];
};
}

View File

@ -5011,6 +5011,8 @@ in {
python-markdown-math = callPackage ../development/python-modules/python-markdown-math { }; python-markdown-math = callPackage ../development/python-modules/python-markdown-math { };
python-miio = callPackage ../development/python-modules/python-miio { };
python-pipedrive = callPackage ../development/python-modules/python-pipedrive { }; python-pipedrive = callPackage ../development/python-modules/python-pipedrive { };
python-ptrace = callPackage ../development/python-modules/python-ptrace { }; python-ptrace = callPackage ../development/python-modules/python-ptrace { };