2020-01-01 12:24:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, appdirs
|
|
|
|
, click
|
|
|
|
, construct
|
|
|
|
, cryptography
|
|
|
|
, pytest
|
|
|
|
, zeroconf
|
|
|
|
, attrs
|
|
|
|
, pytz
|
|
|
|
, tqdm
|
|
|
|
, netifaces
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-miio";
|
2020-06-05 18:44:37 +01:00
|
|
|
version = "0.5.1";
|
2020-01-01 12:24:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:37 +01:00
|
|
|
sha256 = "8d23caf4906f2112dc88b9a6d5e1767877744cae016cd71c2bf75592a4be3b79";
|
2020-01-01 12:24:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rytilahti/python-miio";
|
2020-01-01 12:24:24 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|