1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cryptography
5}:
6
7buildPythonPackage rec {
8 pname = "pyxiaomigateway";
9 version = "0.14.3";
10
11 src = fetchFromGitHub {
12 owner = "Danielhiversen";
13 repo = "PyXiaomiGateway";
14 rev = version;
15 hash = "sha256-TAbZvs1RrUy9+l2KpfbBopc3poTy+M+Q3ERQLFYbQis=";
16 };
17
18 propagatedBuildInputs = [ cryptography ];
19
20 # Tests are not mocking the gateway completely
21 doCheck = false;
22 pythonImportsCheck = [ "xiaomi_gateway" ];
23
24 meta = with lib; {
25 description = "Python library to communicate with the Xiaomi Gateway";
26 homepage = "https://github.com/Danielhiversen/PyXiaomiGateway/";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ fab ];
29 };
30}