2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-08-12 12:06:08 +00:00
|
|
|
, aiocoap
|
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";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.6.12";
|
2021-02-05 17:12:51 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Jc2k";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-a1qxj/6VCnTqfcCfvjjnfM53JjJXP672wumGCvXwxUY=";
|
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
|
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
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|