2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-08-12 12:06:08 +00:00
|
|
|
, aiocoap
|
|
|
|
, bleak
|
|
|
|
, bleak-retry-connector
|
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";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "1.5.2";
|
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}";
|
2022-09-11 15:47:08 +00:00
|
|
|
hash = "sha256-2EU7Um3uxGP1LBt/PEg2s6v7iny60NHCg8ixX+lIsZY=";
|
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
|
|
|
|
bleak
|
|
|
|
bleak-retry-connector
|
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";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
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";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|