depot/third_party/nixpkgs/pkgs/development/python-modules/aiohomekit/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

65 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, chacha20poly1305-reuseable
, commentjson
, cryptography
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.7.20";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-g7N+CIBJCMnW4FjN502SahhSpPS1p7AXZvduteHu+Z4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
chacha20poly1305-reuseable
commentjson
cryptography
zeroconf
];
doCheck = lib.versionAtLeast pytest-aiohttp.version "1.0.0";
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 ];
};
}