1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

tlg-wotd: work around until cltk works with 3.12

https://github.com/NixOS/nixpkgs/pull/353367
This commit is contained in:
2024-12-16 13:20:24 +01:00
parent 89cd81b2f4
commit dbb5fe131e

View File

@@ -42,8 +42,9 @@ in {
#ancientgreek #classics #wotd #wordoftheday
transliteration=$(${pkgs.writers.writePython3 "translit.py" {
libraries = [ niveumPackages.cltk ];
transliteration=$(${pkgs.writers.makePythonWriter pkgs.python311 pkgs.python311Packages pkgs.python3Packages "translit.py" {
# revert to pkgs.writers.writePython3 once https://github.com/NixOS/nixpkgs/pull/353367 is merged
libraries = [ pkgs.python311Packages.cltk ];
} ''
import sys
from cltk.phonology.grc.transcription import Transcriber