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