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 <noreply@anthropic.com>
This commit is contained in:
parent
e2c650b027
commit
78027eb783
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue