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