depot/third_party/nixpkgs/pkgs/development/python-modules/pyxiaomigateway/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
763 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 ];
};
}