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