guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 86ae403744cf93fde7e16a13ae8ceb67eb60f495
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Oct 28 14:47:07 2025 +0000

    gnu: python-thinc: Update to 8.3.4.
    
    * gnu/packages/machine-learning.scm (python-thinc): Update to 8.3.4.
    [arguments] <phases>: Remove 'build-ext; add 'remove-local-thinc - less
    rebuild is better.
    [propagated-inputs]: Remove python-blis-for-thinc and python-numpy; add
    python-blis and python-numpy-2.
    [native-inputs]: Remove python-cython and python-wheel; add
    python-cython-0.
    * gnu/packages/maths.scm (python-blis-for-thinc): Remove variable.
    
    Change-Id: I5b3b624819772cd1b601ff2a7ef516af065a94dc
---
 gnu/packages/machine-learning.scm | 28 ++++++++++++++++------------
 gnu/packages/maths.scm            | 12 ------------
 2 files changed, 16 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 13890adfb3..9690626fe3 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2203,35 +2203,39 @@ and are compatible with its API.")
 (define-public python-thinc
   (package
     (name "python-thinc")
-    (version "8.1.12")
+    (version "8.3.4")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "thinc" version))
               (sha256
                (base32
-                "0lx37vl84y2jcsfn9sphdzbjny2jjyfb85llrrvz0xmig5f2rlcx"))))
+                "1n7zyqasnbb67bcr67l96pvihn4ibjrpbqvi0z56vfwb961594mm"))))
     (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'build 'build-ext
-           (lambda _
-             (invoke "python" "setup.py" "build_ext" "--inplace"
-                     "-j" (number->string (parallel-job-count))))))))
-    (propagated-inputs (list python-blis-for-thinc
+     (list
+      ;; tests: 1215 passed, 113 skipped, 1657 warnings
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'remove-local-thinc
+            (lambda _
+              (copy-recursively "thinc/tests" "tests")
+              ;; This would otherwise interfere with finding the installed
+              ;; thinc when running tests.
+              (delete-file-recursively "thinc"))))))
+    (propagated-inputs (list python-blis
                              python-catalogue
                              python-confection
                              python-cymem
                              python-murmurhash
-                             python-numpy
+                             python-numpy-2
                              python-packaging
                              python-preshed
                              python-pydantic-2
                              python-setuptools
                              python-srsly
                              python-wasabi))
-    (native-inputs (list python-cython python-mock python-pytest
-                         python-setuptools python-wheel))
+    (native-inputs (list python-cython-0 python-mock python-pytest
+                         python-setuptools))
     (home-page "https://github.com/explosion/thinc";)
     (synopsis "Functional take on deep learning")
     (description
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 696510e3ab..d31b9412aa 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4364,18 +4364,6 @@ summation in K-fold precision.")
 self-contained C-extension for Python.")
     (license license:bsd-3)))
 
-(define-public python-blis-for-thinc
-  (package
-    (inherit python-blis)
-    (name "python-blis")
-    (version "0.7.8")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "blis" version))
-              (sha256
-               (base32
-                "0mvcif9g69424bk8xiflacxzpvz802ns791v2r8a6fij0sxl3mgp"))))))
-
 (define-public python-cvxopt
   (package
     (name "python-cvxopt")

Reply via email to