guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e28b37228095532663100969e281ea2ebec79be1
Author: Cayetano Santos <[email protected]>
AuthorDate: Thu Aug 14 12:20:47 2025 +0200

    gnu: python-sentence-transformers: Update to 5.1.0.
    
    * gnu/packages/machine-learning.scm (python-sentence-transformers):
    Update to 5.1.0.
    [arguments] <tests?>: Disable as most of them require network access.
    <test-flags>: Drop as no longer required.
    [propagated-inputs]: Add python-typing-extensions.
    
    Change-Id: I0fb7471dee2dd3ea54bcecd9bcd5b314670e4312
    Modified-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/machine-learning.scm | 24 ++++--------------------
 1 file changed, 4 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index f17e1f0b84..7f023d2ba4 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1501,7 +1501,7 @@ unsupervised text tokenizer.")
 (define-public python-sentence-transformers
   (package
     (name "python-sentence-transformers")
-    (version "3.0.1")
+    (version "5.1.0")
     (source
      (origin
        (method git-fetch)
@@ -1511,31 +1511,15 @@ unsupervised text tokenizer.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "10kh4l713mikcm82p54qxpz5sp1mchbsqksa5j24jfm1k9ssxjif"))))
+         "1jkj77q25b21nxrdszvlw127jnx1m7x8czldiq2mfyj76yjk0ymj"))))
     (build-system pyproject-build-system)
     (arguments
-     (list
-      #:test-flags
-      #~(list
-         ;; Missing fixture / train or test data.
-         ;; Requires internet access.
-         "--ignore=tests/test_sentence_transformer.py"
-         "--ignore=tests/test_train_stsb.py"
-         "--ignore=tests/test_compute_embeddings.py"
-         "--ignore=tests/test_cross_encoder.py"
-         "--ignore=tests/test_model_card_data.py"
-         "--ignore=tests/test_multi_process.py"
-         "--ignore=tests/test_pretrained_stsb.py"
-         "-k" (string-append
-               "not test_LabelAccuracyEvaluator"
-               " and not test_ParaphraseMiningEvaluator"
-               " and not test_cmnrl_same_grad"
-               " and not test_paraphrase_mining"
-               " and not test_simple_encode"))))
+     (list #:tests? #f))        ;network access is required
     (propagated-inputs (list python-huggingface-hub
                              python-numpy
                              python-pillow
                              python-pytorch
+                             python-typing-extensions
                              python-scikit-learn
                              python-scipy
                              python-tqdm

Reply via email to