504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
31 lines
757 B
Nix
31 lines
757 B
Nix
{ 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 = with lib; {
|
|
description = "Python library to communicate with the Xiaomi Gateway";
|
|
homepage = "https://github.com/Danielhiversen/PyXiaomiGateway/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|