1{ lib
2, buildPythonPackage
3, commentjson
4, cryptography
5, fetchFromGitHub
6, poetry-core
7, pytest-aiohttp
8, pytestCheckHook
9, zeroconf
10}:
11
12buildPythonPackage rec {
13 pname = "aiohomekit";
14 version = "0.6.3";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "Jc2k";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-XBinbhYUB9BuQxxmWfZUw276uNam4DgBpiCAjT7KDlg=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 commentjson
30 cryptography
31 zeroconf
32 ];
33
34 checkInputs = [
35 pytest-aiohttp
36 pytestCheckHook
37 ];
38
39 disabledTestPaths = [
40 # Tests require network access
41 "tests/test_ip_pairing.py"
42 ];
43
44 pythonImportsCheck = [ "aiohomekit" ];
45
46 meta = with lib; {
47 description = "Python module that implements the HomeKit protocol";
48 longDescription = ''
49 This Python library implements the HomeKit protocol for controlling
50 Homekit accessories.
51 '';
52 homepage = "https://github.com/Jc2k/aiohomekit";
53 license = with licenses; [ asl20 ];
54 maintainers = with maintainers; [ fab ];
55 };
56}