2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
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
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, orjson
|
2021-06-28 23:13:55 +00:00
|
|
|
, poetry-core
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, zeroconf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohomekit";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.5";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-F3PhZsuIgT3x1Y3/kx9juPwN2WKxvdbahrRm+r6ZPps=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiohomekit"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module that implements the HomeKit protocol";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "aiohomekitctl";
|
2021-02-05 17:12:51 +00:00
|
|
|
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}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|