From fe78c282a31a0570ed5296146459ef38e28200f0 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 5 Jan 2026 11:01:08 -0800 Subject: [PATCH] python314Packages.sentence-transformers: disable failing tests under python 3.14 --- .../python-modules/sentence-transformers/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/sentence-transformers/default.nix b/pkgs/development/python-modules/sentence-transformers/default.nix index 15d7b590b131..44f8dda23901 100644 --- a/pkgs/development/python-modules/sentence-transformers/default.nix +++ b/pkgs/development/python-modules/sentence-transformers/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system setuptools, @@ -128,6 +129,17 @@ buildPythonPackage rec { # NameError: name 'ParallelismConfig' is not defined "test_hf_argument_parser" "test_hf_argument_parser_incorrect_string_arguments" + + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given + # https://github.com/huggingface/sentence-transformers/issues/3606 + "test_group_by_label_batch_sampler_label_a" + "test_group_by_label_batch_sampler_label_b" + "test_group_by_label_batch_sampler_uneven_dataset" + "test_proportional_no_duplicates" + "test_round_robin_batch_sampler" + "test_round_robin_batch_sampler_vallue_error" ] ++ lib.optionals (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) [ # These sparse tests also time out, on x86_64-darwin.