From 78027eb7831a9d0e540c6bf93bdd0c7787da099f Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 1 Mar 2026 16:02:49 -0800 Subject: [PATCH] Fix authentik: entry_points API for Python 3.14 Python 3.14's EntryPoints uses string keys, not integer indices. eps[0] raises KeyError(0); use next(iter(eps)) instead. Verified on ringtail with the actual venv python. Co-Authored-By: Claude Opus 4.6 --- containers/authentik/authentik-django.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/authentik/authentik-django.nix b/containers/authentik/authentik-django.nix index 789edbf..a00ea85 100644 --- a/containers/authentik/authentik-django.nix +++ b/containers/authentik/authentik-django.nix @@ -95,7 +95,7 @@ pkgs.stdenv.mkDerivation { from importlib.metadata import entry_points eps = entry_points(group='console_scripts', name='$ep') if eps: - sys.exit(eps[0].load()()) + sys.exit(next(iter(eps)).load()()) SCRIPT chmod +x $out/bin/$ep fi