From 134d51630ec8ef87f1ebcd713db218df203e3419 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Thu, 30 Apr 2026 16:21:52 +0200 Subject: [PATCH] python3Packages.translate-toolkit: 3.19.5 -> 3.19.10 Diff: https://github.com/translate/translate/compare/3.19.5...3.19.10 Changelog: https://docs.translatehouse.org/projects/translate-toolkit/en/latest/releases/3.19.10.html (cherry picked from commit 478109bb6c1e956612d9a9f7c90010b1b075120d) --- .../python-modules/translate-toolkit/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/translate-toolkit/default.nix b/pkgs/development/python-modules/translate-toolkit/default.nix index 28e64d4cb293..e5f603b78ba6 100644 --- a/pkgs/development/python-modules/translate-toolkit/default.nix +++ b/pkgs/development/python-modules/translate-toolkit/default.nix @@ -29,18 +29,19 @@ addBinToPathHook, pytest-xdist, gettext, + syrupy, }: buildPythonPackage (finalAttrs: { pname = "translate-toolkit"; - version = "3.19.5"; + version = "3.19.10"; pyproject = true; src = fetchFromGitHub { owner = "translate"; repo = "translate"; tag = finalAttrs.version; - hash = "sha256-NJuhkJyXfGO2iwvcHUrfMZi55t1+89RN6jEIxHk8mcs="; + hash = "sha256-bDvj+zTD15bCr8xA+ovKWEMabC4xB9Jsdz66RYtdaBU="; }; build-system = [ setuptools-scm ]; @@ -50,6 +51,8 @@ buildPythonPackage (finalAttrs: { unicode-segmentation-rs ]; + pythonRelaxDeps = [ "lxml" ]; + optional-dependencies = { chardet = [ charset-normalizer ]; fluent = [ fluent-syntax ]; @@ -69,6 +72,7 @@ buildPythonPackage (finalAttrs: { pytestCheckHook addBinToPathHook pytest-xdist + syrupy gettext ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; @@ -78,12 +82,6 @@ buildPythonPackage (finalAttrs: { "test_timezones" ]; - disabledTestPaths = [ - # Require pytest-snapshot but there are no snapshots checked in - "tests/translate/tools/test_pocount.py" - "tests/translate/tools/test_junitmsgfmt.py" - ]; - pythonImportsCheck = [ "translate" ]; __darwinAllowLocalNetworking = true;