depot/third_party/nixpkgs/pkgs/development/python-modules/aiohomekit/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

73 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, aiocoap
, bleak
, bleak-retry-connector
, chacha20poly1305-reuseable
, commentjson
, cryptography
, fetchFromGitHub
, orjson
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "aiohomekit";
version = "1.5.2";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-2EU7Um3uxGP1LBt/PEg2s6v7iny60NHCg8ixX+lIsZY=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiocoap
bleak
bleak-retry-connector
chacha20poly1305-reuseable
commentjson
cryptography
orjson
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 ];
};
}