From 490777d8fea2c8f352fc96e6e4245ae12c0806e8 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 22 Mar 2026 12:37:02 -0700 Subject: [PATCH 1/2] python3Packages.aioghost: init at 0.4.0 --- .../python-modules/aioghost/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/aioghost/default.nix diff --git a/pkgs/development/python-modules/aioghost/default.nix b/pkgs/development/python-modules/aioghost/default.nix new file mode 100644 index 000000000000..0565d1ba2287 --- /dev/null +++ b/pkgs/development/python-modules/aioghost/default.nix @@ -0,0 +1,49 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pyjwt, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "aioghost"; + version = "0.4.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "TryGhost"; + repo = "aioghost"; + tag = "v${finalAttrs.version}"; + hash = "sha256-VIMkAPUzIzSwXCbwqu+OOvUwd/l2zUJpnvjLlvIoDAk="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + pyjwt + ]; + + nativeCheckInputs = [ + aioresponses + pytest-aiohttp + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "aioghost" ]; + + meta = { + description = "Async Python client for the Ghost Admin API"; + homepage = "https://github.com/TryGhost/aioghost"; + changelog = "https://github.com/TryGhost/aioghost/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 3b2b7243af76..94608a6e6977 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -292,6 +292,8 @@ self: super: with self; { aioftp = callPackage ../development/python-modules/aioftp { }; + aioghost = callPackage ../development/python-modules/aioghost { }; + aiogithubapi = callPackage ../development/python-modules/aiogithubapi { }; aiogram = callPackage ../development/python-modules/aiogram { }; From b3220449f776b0666c1087e368addeaf62dde99f Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 22 Mar 2026 12:38:29 -0700 Subject: [PATCH 2/2] home-assistant: update component-packages.nix --- 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 313017e0e2d3..1b30ad7af2d4 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2139,7 +2139,8 @@ ]; "ghost" = ps: with ps; [ - ]; # missing inputs: aioghost + aioghost + ]; "gios" = ps: with ps; [ gios @@ -7670,6 +7671,7 @@ "geofency" "geonetnz_quakes" "geonetnz_volcano" + "ghost" "gios" "github" "glances"