depot/third_party/nixpkgs/pkgs/development/python-modules/aiohomekit/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonAtLeast
, zeroconf
}:
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "sha256-chRUQyCDXW4of0XBdmKuQEzUE3Gt4A2uGlPNy+oEoco=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
cryptography
zeroconf
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
disabledTestPaths = [
# Tests require network access
"tests/test_ip_pairing.py"
];
pythonImportsCheck = [ "aiohomekit" ];
meta = with lib; {
description = "Python module that implements the HomeKit protocol";
longDescription = ''
This Python library implements the HomeKit protocol for controlling
Homekit accessories.
'';
homepage = "https://github.com/Jc2k/aiohomekit";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}