~ruther/guix-local

d19bd45ce91f2ac9792b16fe22eee9b11ecb8f21 — Ricardo Wurmus 1 year, 3 months ago 29bbaa4
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
1 files changed, 16 insertions(+), 17 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +16 -17
@@ 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")