Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "47"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "Kane610"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-/BdSB7CD/ob8vinYDZVy0FNU23PSCiHF8jHGQUDsm1w="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 orjson 30 ]; 31 32 nativeCheckInputs = [ 33 aioresponses 34 pytest-aiohttp 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pytestFlagsArray = [ 40 "--asyncio-mode=auto" 41 ]; 42 43 pythonImportsCheck = [ 44 "aiounifi" 45 ]; 46 47 meta = with lib; { 48 description = "Python library for communicating with Unifi Controller API"; 49 homepage = "https://github.com/Kane610/aiounifi"; 50 changelog = "https://github.com/Kane610/aiounifi/releases/tag/v${version}"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ peterhoeg ]; 53 }; 54}