Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, aiohttp, aioresponses, buildPythonPackage, fetchFromGitHub, orjson, pyotp, pytest-aiohttp, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder, segno, setuptools, trustme,}:
buildPythonPackage (finalAttrs: { pname = "aiounifi"; version = "99"; pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub { owner = "Kane610"; repo = "aiounifi"; tag = "v${finalAttrs.version}"; hash = "sha256-r5Rnbt9bG/Q0EIozBOtmoMYtQIuVb2A+phxaQhWZ3fk="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==84.2.1" "setuptools" \ --replace-fail "wheel==0.48.0" "wheel" '';
build-system = [ setuptools ];
dependencies = [ aiohttp orjson pyotp segno ];
nativeCheckInputs = [ aioresponses pytest-aiohttp pytest-asyncio pytest-cov-stub pytestCheckHook trustme ];
__darwinAllowLocalNetworking = true;
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"; };})