1{
2 lib,
3 aiohttp,
4 bitstruct,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 pytest-asyncio,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 typing-extensions,
13 voluptuous,
14}:
15
16buildPythonPackage rec {
17 pname = "python-otbr-api";
18 version = "2.7.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.9";
22
23 src = fetchFromGitHub {
24 owner = "home-assistant-libs";
25 repo = "python-otbr-api";
26 tag = version;
27 hash = "sha256-irQ4QvpGIAYYKq0UqLuo7Nrnde905+GJFd4HkxsCDmQ=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 aiohttp
34 bitstruct
35 cryptography
36 typing-extensions
37 voluptuous
38 ];
39
40 nativeCheckInputs = [
41 pytest-asyncio
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "python_otbr_api" ];
46
47 meta = with lib; {
48 description = "Library for the Open Thread Border Router";
49 homepage = "https://github.com/home-assistant-libs/python-otbr-api";
50 changelog = "https://github.com/home-assistant-libs/python-otbr-api/releases/tag/${version}";
51 license = licenses.mit;
52 maintainers = with maintainers; [ fab ];
53 };
54}