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