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