1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, appdirs
5, click
6, construct
7, cryptography
8, pytest
9, zeroconf
10, attrs
11, pytz
12, tqdm
13, netifaces
14}:
15
16buildPythonPackage rec {
17 pname = "python-miio";
18 version = "0.5.3";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
23 };
24
25 checkInputs = [ pytest ];
26 propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
27
28 checkPhase = ''
29 pytest
30 '';
31
32 meta = with stdenv.lib; {
33 broken = true;
34 description = "Python library for interfacing with Xiaomi smart appliances";
35 homepage = "https://github.com/rytilahti/python-miio";
36 license = licenses.gpl3;
37 maintainers = with maintainers; [ flyfloh ];
38 };
39}
40