2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
aiocoap,
|
|
|
|
aiohappyeyeballs,
|
|
|
|
async-interrupt,
|
|
|
|
bleak,
|
|
|
|
bleak-retry-connector,
|
|
|
|
chacha20poly1305,
|
|
|
|
chacha20poly1305-reuseable,
|
|
|
|
commentjson,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
orjson,
|
|
|
|
poetry-core,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
zeroconf,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohomekit";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.2.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Jc2k";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aiohomekit";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-gWuFCL78hcOflXlDwYDSu3+G/F8D5najtoTgKKzod1Y=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-08-12 12:06:08 +00:00
|
|
|
aiocoap
|
2024-01-02 11:29:13 +00:00
|
|
|
aiohappyeyeballs
|
2023-08-04 22:07:22 +00:00
|
|
|
async-interrupt
|
2022-08-12 12:06:08 +00:00
|
|
|
bleak
|
|
|
|
bleak-retry-connector
|
2022-11-04 12:27:35 +00:00
|
|
|
chacha20poly1305
|
2022-07-14 12:49:19 +00:00
|
|
|
chacha20poly1305-reuseable
|
2021-07-24 12:14:16 +00:00
|
|
|
commentjson
|
2021-02-05 17:12:51 +00:00
|
|
|
cryptography
|
2022-08-12 12:06:08 +00:00
|
|
|
orjson
|
2021-02-05 17:12:51 +00:00
|
|
|
zeroconf
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
doCheck = lib.versionAtLeast pytest-aiohttp.version "1.0.0";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/test_ip_pairing.py"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AttributeError: 'MockedAsyncServiceInfo' object has no attribute '_set_properties'
|
|
|
|
"test_discover_find_one_unpaired"
|
|
|
|
"test_find_device_id_case_lower"
|
|
|
|
"test_find_device_id_case_upper"
|
|
|
|
"test_discover_missing_csharp"
|
|
|
|
"test_discover_csharp_case"
|
|
|
|
"test_discover_device_id_case_lower"
|
|
|
|
"test_discover_device_id_case_upper"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aiohomekit" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/Jc2k/aiohomekit/releases/tag/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = licenses.asl20;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-19 14:19:46 +00:00
|
|
|
mainProgram = "aiohomekitctl";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|