From dbb5fe131ebd39d22882ce84b47d0e4ce5683a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 16 Dec 2024 13:20:24 +0100 Subject: [PATCH] tlg-wotd: work around until cltk works with 3.12 https://github.com/NixOS/nixpkgs/pull/353367 --- configs/bots/tlg-wotd.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/bots/tlg-wotd.nix b/configs/bots/tlg-wotd.nix index b43c577..d43eb67 100644 --- a/configs/bots/tlg-wotd.nix +++ b/configs/bots/tlg-wotd.nix @@ -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