From c99ea9bb2d3d363308c3e337ca780894c1c62150 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 18 Mar 2026 09:35:53 -0700 Subject: [PATCH] libretranslate: 1.9.0 -> 1.9.5 This keeps the upstream argostranslate dependency instead of the argos-translate-lt fork. --- .../python-modules/libretranslate/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/libretranslate/default.nix b/pkgs/development/python-modules/libretranslate/default.nix index c9495a15f214..1b3cc31e3cf4 100644 --- a/pkgs/development/python-modules/libretranslate/default.nix +++ b/pkgs/development/python-modules/libretranslate/default.nix @@ -34,14 +34,14 @@ buildPythonPackage (finalAttrs: { pname = "libretranslate"; - version = "1.9.0"; + version = "1.9.5"; pyproject = true; src = fetchFromGitHub { owner = "LibreTranslate"; repo = "LibreTranslate"; - hash = "sha256-bBs7gG42H4MNca5RUiedKNQkLjKpBm2SbPMRyh2gh6c="; tag = "v${finalAttrs.version}"; + hash = "sha256-VcMo1GX+ituQOW8Dpt0ABJG5fsJbFuxAPmi59Byg5ww="; }; build-system = [ @@ -50,6 +50,14 @@ buildPythonPackage (finalAttrs: { pythonRelaxDeps = true; + # LibreTranslate has forked argos-translate [1] to fix some bugs and make stanza optional, but it's + # unclear what the future of this fork is. + # + # We'll stay on upstream argostranslate for now. + # + # [1]: https://github.com/Libretranslate/argos-translate/ + pythonRemoveDeps = [ "argos-translate-lt" ]; + dependencies = [ argostranslate flask