1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-aiohttp
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "aiounifi";
14 version = "29";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "Kane610";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-A2+jLxKpha7HV1m3uzy00o8tsjwx0Uuwn5x3DO9daTI=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 ];
28
29 checkInputs = [
30 aioresponses
31 pytest-aiohttp
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "aiounifi" ];
37
38 meta = with lib; {
39 description = "Python library for communicating with Unifi Controller API";
40 homepage = "https://github.com/Kane610/aiounifi";
41 license = licenses.mit;
42 maintainers = with maintainers; [ peterhoeg ];
43 };
44}