From d19bd45ce91f2ac9792b16fe22eee9b11ecb8f21 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 12 Jan 2025 13:19:42 +0100 Subject: [PATCH] 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 9369c37a83fba993e814d2fb0c50a48c9fd74764..8364df3943a21b8b7a1bad9d0a923e8320727a93 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")