guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

255/455: gnu: python-django-haystack: Update to 3.3.0.


From: guix-commits
Subject: 255/455: gnu: python-django-haystack: Update to 3.3.0.
Date: Mon, 20 Jan 2025 15:47:11 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit d19bd45ce91f2ac9792b16fe22eee9b11ecb8f21
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Jan 12 13:19:42 2025 +0100

    gnu: python-django-haystack: Update to 3.3.0.
    
    * gnu/packages/django.scm (python-django-haystack): Update to 3.3.0.
    [build-system]: Use pyproject-build-system.
    [arguments]: Adjust; remove phase 'loosen-verion-restrictions.
    [propagated-inputs]: Add python-packaging.
    [native-inputs]: Remove gdal, python-mock, and python-nose; add
    python-setuptools and python-wheel.
    [inputs]: Add gdal.
    
    Change-Id: Ib9cfb2231ec79e26474e8123cbde2ea4598590da
---
 gnu/packages/django.scm | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 9369c37a83..8364df3943 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -484,42 +484,41 @@ useful tools for testing Django applications and 
projects.")
 (define-public python-django-haystack
   (package
     (name "python-django-haystack")
-    (version "3.1.1")
+    (version "3.3.0")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "django-haystack" version))
         (sha256
          (base32
-          "10kaa5641cakpra2x3jqgys085gdkjcyns26plfyrmfpjmmpa1bd"))))
-    (build-system python-build-system)
+          "1arfl0y34nfvpzwiib6859g9154qqvdb97j09nhmsqh0h1myvkp3"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'loosen-verion-restrictions
-           (lambda _
-             (substitute* "setup.py"
-               (("geopy.*") "geopy\",\n"))))
+     (list
+      ;; It is unclear how to run the tests.  They require a running local
+      ;; solr server.
+      #:tests? #false
+      #:phases
+      '(modify-phases %standard-phases
          (add-before 'check 'set-gdal-lib-path
            (lambda* (#:key inputs #:allow-other-keys)
              (setenv "GDAL_LIBRARY_PATH"
                      (string-append (assoc-ref inputs "gdal")
                                     "/lib"))))
          ;; Importing this module requires setting up a Django project.
-         (delete 'sanity-check))
-       #:tests? #f)) ; OSError: libgdal.so.27: cannot open shared object file
+         (delete 'sanity-check))))
     (propagated-inputs
-     (list python-django))
+     (list python-django python-packaging))
+    (inputs (list gdal))
     (native-inputs
-     (list gdal
-           python-coverage
+     (list python-coverage
            python-dateutil
            python-geopy
-           python-mock
-           python-nose
+           python-pysolr
            python-requests
+           python-setuptools
            python-setuptools-scm
-           python-pysolr
+           python-wheel
            python-whoosh))
     (home-page "https://haystacksearch.org/";)
     (synopsis "Pluggable search for Django")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]