depot/third_party/nixpkgs/pkgs/development/python-modules/pyxiaomigateway/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

30 lines
734 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
}:
buildPythonPackage rec {
pname = "pyxiaomigateway";
version = "0.14.3";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "PyXiaomiGateway";
rev = version;
sha256 = "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 ];
};
}