Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, aiohttp, aioresponses, buildPythonPackage, fetchFromGitHub, orjson, pytest-aiohttp, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder, segno, setuptools, trustme,}:
buildPythonPackage (finalAttrs: { pname = "aiounifi"; version = "89"; pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub { owner = "Kane610"; repo = "aiounifi"; tag = "v${finalAttrs.version}"; hash = "sha256-SkvT2rwKbdQkuKunWzp439k4sTTBSLjEtYbR1cHhLKc="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==82.0.0" "setuptools" \ --replace-fail "wheel==0.46.3" "wheel" '';
build-system = [ setuptools ];
dependencies = [ aiohttp orjson segno ];
nativeCheckInputs = [ aioresponses pytest-aiohttp pytest-asyncio pytest-cov-stub pytestCheckHook trustme ];
pythonImportsCheck = [ "aiounifi" ];
meta = { description = "Python library for communicating with Unifi Controller API"; homepage = "https://github.com/Kane610/aiounifi"; changelog = "https://github.com/Kane610/aiounifi/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ ]; mainProgram = "aiounifi"; };})