Files
nixpkgs/pkgs/development/python-modules/aiohomekit/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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.20";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Jc2k";
repo = "aiohomekit";
tag = version;
hash = "sha256-iVLW7oaYJ2imVs0aMUpGbiCyE86JOaHZJr86ZGRkfLM=";
};
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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "aiohomekitctl";
};
}