Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
aiocoap,
|
|
aiohappyeyeballs,
|
|
async-interrupt,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
chacha20poly1305,
|
|
chacha20poly1305-reuseable,
|
|
commentjson,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
orjson,
|
|
poetry-core,
|
|
pytest-asyncio_0,
|
|
pytest-aiohttp,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
zeroconf,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohomekit";
|
|
version = "3.2.19";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jc2k";
|
|
repo = "aiohomekit";
|
|
tag = version;
|
|
hash = "sha256-ML7j5OBbQyF+2Q1WHBwJfnRUnG8kf+cog1nMRp6fOSE=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiocoap
|
|
aiohappyeyeballs
|
|
async-interrupt
|
|
bleak
|
|
bleak-retry-connector
|
|
chacha20poly1305
|
|
chacha20poly1305-reuseable
|
|
commentjson
|
|
cryptography
|
|
orjson
|
|
zeroconf
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
(pytest-aiohttp.override { pytest-asyncio = pytest-asyncio_0; })
|
|
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";
|
|
changelog = "https://github.com/Jc2k/aiohomekit/releases/tag/${src.tag}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "aiohomekitctl";
|
|
};
|
|
}
|