[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55474] [PATCH v5 32/55] gnu: python-django-haystack: Update to 3.2.
From: |
Nicolas Graves |
Subject: |
[bug#55474] [PATCH v5 32/55] gnu: python-django-haystack: Update to 3.2.1. |
Date: |
Sun, 25 Jun 2023 18:57:33 +0200 |
* gnu/packages/django.scm (python-django-haystack): Update to 3.2.1.
[build-system]: Use pyproject-build-system.
[arguments](phases): Delete phase loosen-version-restrictions. Extend and
rename phase set-gdal-lib-path to set-lib-path, add phase check.
(tests?): Delete argument.
[native-inputs]: Add geos. Delete python-pysolr.
---
gnu/packages/django.scm | 60 ++++++++++++++++++++++++++++++-----------
1 file changed, 44 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index fa36b2c5b3..64e4c58f41 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -471,34 +471,63 @@ (define-public python-pytest-django
(define-public python-django-haystack
(package
(name "python-django-haystack")
- (version "3.1.1")
+ (version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "django-haystack" version))
(sha256
- (base32
- "10kaa5641cakpra2x3jqgys085gdkjcyns26plfyrmfpjmmpa1bd"))))
- (build-system python-build-system)
+ (base32 "194kf9ps1h8bq8q32x6nniy85grl4l5605vgbd0gw9f2xxx1kqwp"))))
+ (build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'loosen-verion-restrictions
- (lambda _
- (substitute* "setup.py"
- (("geopy.*") "geopy\",\n"))))
- (add-before 'check 'set-gdal-lib-path
+ (add-before 'check 'set-lib-path
(lambda* (#:key inputs #:allow-other-keys)
- (setenv "GDAL_LIBRARY_PATH"
- (string-append (assoc-ref inputs "gdal")
- "/lib"))))
+ (setenv "LD_LIBRARY_PATH"
+ (string-append
+ (assoc-ref inputs "gdal") "/lib"
+ ":" (assoc-ref inputs "geos") "/lib"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (begin
+ ;; Delete absent elasticsearch tests.
+ (delete-file-recursively "test_haystack/elasticsearch_tests")
+ (delete-file-recursively "test_haystack/elasticsearch2_tests")
+ (delete-file-recursively "test_haystack/elasticsearch5_tests")
+ (delete-file-recursively "test_haystack/elasticsearch7_tests")
+ ;; Solr tests require a running solr server.
+ ;; Deactivating solr.
+ (delete-file-recursively "test_haystack/solr_tests")
+ (delete-file "haystack/backends/solr_backend.py")
+ (delete-file
+ "haystack/management/commands/build_solr_schema.py")
+ (delete-file
+ "test_haystack/test_altered_internal_names.py")
+ (delete-file "test_haystack/multipleindex/tests.py")
+ (delete-file "test_haystack/spatial/test_spatial.py")
+ (substitute* "test_haystack/test_loading.py"
+ (("class ConnectionHandlerTestCase" all)
+ (string-append
+ "\nfrom nose.plugins.attrib import attr"
+ "\n@attr('skip')"
+ "\n" all)))
+ (substitute* "test_haystack/settings.py"
+ (("\"solr\":")
+ (string-append
+ "\"solr\": {\"ENGINE\":
\"test_haystack.mocks.MockEngine\"}}"
+ "\n_={\"solr\":")))
+ ;; Run tests.
+ (invoke "django-admin"
+ "test" "--settings=test_haystack.settings"
+ "--pythonpath=.")))))
;; 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))
(native-inputs
- (list gdal
+ (list gdal geos
python-coverage
python-dateutil
python-geopy
@@ -506,7 +535,6 @@ (define-public python-django-haystack
python-nose
python-requests
python-setuptools-scm
- python-pysolr
python-whoosh))
(home-page "https://haystacksearch.org/")
(synopsis "Pluggable search for Django")
--
2.40.1
- [bug#55474] [PATCH v5 24/55] gnu: python-django-sortedm2m: Update to 3.1.1-0-ddf321f., (continued)
- [bug#55474] [PATCH v5 24/55] gnu: python-django-sortedm2m: Update to 3.1.1-0-ddf321f., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 25/55] gnu: python-defusedxml: Update to 0.7.0., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 28/55] gnu: python-rjsmin: Update to 1.2.1., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 26/55] gnu: python-filetype: Update to 1.0.10., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 29/55] gnu: python-django-mailman3: Update to 1.3.8., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 23/55] gnu: python-django-tagging: Add patch for django@4 support., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 27/55] gnu: python-rcssmin: Update to 1.1.1., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 30/55] gnu: Remove python-pysolr., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 33/55] gnu: python-hyperkitty: Update to 1.3.7., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 31/55] gnu: python-django-compressor: Update to 4.3.1., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 32/55] gnu: python-django-haystack: Update to 3.2.1.,
Nicolas Graves <=
- [bug#55474] [PATCH v5 34/55] gnu: Add python-django-requests-debug-toolbar., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 35/55] gnu: postorius: Update to 1.3.7., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 37/55] gnu: python-django: Update default version to 4.0., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 38/55] gnu: python-django-taggit: Update to 3.1.0., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 39/55] gnu: python-django-filter: Update to 22.1., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 40/55] gnu: Add python-django-modelcluster., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 43/55] gnu: Add python-jinjalint., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 36/55] gnu: python-django-rest-framework: Update to 3.14.0., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 41/55] gnu: Add python-django-treebeard., Nicolas Graves, 2023/06/25
- [bug#55474] [PATCH v5 44/55] gnu: Add python-willow., Nicolas Graves, 2023/06/25