guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f8304ab7362e7b2bc6b310072ad59f08a554d1fd
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Oct 5 15:59:47 2025 +0100

    gnu: python-whoosh: Update to 2.7.4-0.d9a3fa2.
    
    * gnu/packages/python-xyz.scm (python-whoosh): Update to
    d9a3fa2a4905e7326c9623c89e6395713c189161 commit.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-buld-system.
    [arguments] <tests?>: All tests are working now.
    [propagated-inputs]: Add python-cached-property.
    [native-inputs]: Add python-setuptools.
    [home-page]: Fix dead link.
    
    Change-Id: Ia6490e6fdb29b40bcd96a6480eeea6a9ed1100bf
---
 gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6487e3d35a..90a7a10229 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21890,26 +21890,35 @@ useful for solving the Assignment Problem.")
     (license license:bsd-3)))
 
 (define-public python-whoosh
-  (package
-    (name "python-whoosh")
-    (version "2.7.4")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "Whoosh" version))
-       (sha256
-        (base32
-         "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
-    (build-system python-build-system)
-    (arguments '(#:tests? #f)) ; Test invocation is no longer supported by 
Python.
-    (native-inputs
-     (list python-pytest))
-    (home-page "https://bitbucket.org/mchaput/whoosh";)
-    (synopsis "Full text indexing, search, and spell checking library")
-    (description
-     "Whoosh is a fast, pure-Python full text indexing, search, and spell
+  ;; XXX: 2.7.4 was placed in 2016 and no longer copatible with how setuptools
+  ;; parses setup.py, use the latest commit, see:
+  ;; <https://codeberg.org/guix/guix/issues/3318>,
+  ;; <https://github.com/whoosh-community/whoosh/issues/561>.
+  (let ((commit "d9a3fa2a4905e7326c9623c89e6395713c189161")
+        (revision "0"))
+    (package
+      (name "python-whoosh")
+      (version (git-version "2.7.4" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/mchaput/whoosh";)
+                (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1i16229nkggl9qi57kxapbc4f2p2wpr67fswvr97w13839d6dxpp"))))
+      (build-system pyproject-build-system)
+      (native-inputs
+       (list python-pytest python-setuptools))
+      (propagated-inputs
+       (list python-cached-property))
+      (home-page "https://github.com/mchaput/whoosh";)
+      (synopsis "Full text indexing, search, and spell checking library")
+      (description
+       "Whoosh is a fast, pure-Python full text indexing, search, and spell
 checking library.")
-    (license license:bsd-2)))
+      (license license:bsd-2))))
 
 (define-public python-codespell
   (package

Reply via email to