2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cryptography,
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyxiaomigateway";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.14.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
repo = "PyXiaomiGateway";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-TAbZvs1RrUy9+l2KpfbBopc3poTy+M+Q3ERQLFYbQis=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|