Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, aiohttp, aioresponses, buildPythonPackage, fetchFromGitHub, orjson, pytest-aiohttp, pytest-asyncio, pytest-cov-stub, pytestCheckHook, pythonOlder, segno, setuptools, trustme,}:
buildPythonPackage rec { pname = "aiounifi"; version = "84"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "Kane610"; repo = "aiounifi"; tag = "v${version}"; hash = "sha256-8zOM1K1N1NFUQwyEVRDFqHntK+HSpXG2F1sRhOs7Bc4="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==80.9.0" "setuptools" \ --replace-fail "wheel==0.46.1" "wheel" '';
build-system = [ setuptools ];
dependencies = [ aiohttp orjson segno ];
nativeCheckInputs = [ aioresponses pytest-aiohttp pytest-asyncio pytest-cov-stub pytestCheckHook trustme ];
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "aiounifi" ];
meta = with lib; { description = "Python library for communicating with Unifi Controller API"; homepage = "https://github.com/Kane610/aiounifi"; changelog = "https://github.com/Kane610/aiounifi/releases/tag/v${version}"; license = licenses.mit; maintainers = [ ]; mainProgram = "aiounifi"; };}