From dbb01b8110db95bd1d4b8aca23d4bf66d5618f85 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 4 Apr 2026 20:12:48 -0700 Subject: [PATCH 1/2] python3Packages.py-unifi-access: init at 1.1.3 --- .../py-unifi-access/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/py-unifi-access/default.nix diff --git a/pkgs/development/python-modules/py-unifi-access/default.nix b/pkgs/development/python-modules/py-unifi-access/default.nix new file mode 100644 index 000000000000..c06334edd5b0 --- /dev/null +++ b/pkgs/development/python-modules/py-unifi-access/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + pydantic, + aioresponses, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "py-unifi-access"; + version = "1.1.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "imhotep"; + repo = "py-unifi-access"; + tag = finalAttrs.version; + hash = "sha256-FYhHTYQl+yGHcAu0APqdfca/YSMp3GSQmY7kSO4xkH8="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + pydantic + ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ]; + + pythonImportsCheck = [ "unifi_access_api" ]; + + meta = { + description = "Async Python client for the UniFi Access local API with WebSocket event support"; + homepage = "https://github.com/imhotep/py-unifi-access"; + changelog = "https://github.com/imhotep/py-unifi-access/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d08f34e023de..d64743aa3811 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13177,6 +13177,8 @@ self: super: with self; { py-ubjson = callPackage ../development/python-modules/py-ubjson { }; + py-unifi-access = callPackage ../development/python-modules/py-unifi-access { }; + py-vapid = callPackage ../development/python-modules/py-vapid { }; py-zabbix = callPackage ../development/python-modules/py-zabbix { }; From f0131643cbe03575b878901ca4b5e0ce4fcc32e7 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 4 Apr 2026 20:13:48 -0700 Subject: [PATCH 2/2] home-assistant: update component packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index cd3a3632099c..cfa9fd20599d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6693,7 +6693,8 @@ ]; "unifi_access" = ps: with ps; [ - ]; # missing inputs: py-unifi-access + py-unifi-access + ]; "unifi_direct" = ps: with ps; [ unifi-ap @@ -8336,6 +8337,7 @@ "uk_transport" "ukraine_alarm" "unifi" + "unifi_access" "unifiprotect" "universal" "upb"