mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 11:29:59 +01:00
gnu: python-django-haystack: Enable tests.
* gnu/packages/django.scm (python-django-haystack): Use G-Expressions. [arguments] <phases>: Use custom 'check. Remove 'set-gdal-lib-path having it makes all tests to fail. [inputs]: Remove gdal. Change-Id: Ic7b70f731cd805b2aedfc94fe9a13cb37c7ff930
This commit is contained in:
parent
69bf202d36
commit
85fb1c6f1d
1 changed files with 6 additions and 10 deletions
|
@ -497,21 +497,17 @@ useful tools for testing Django applications and projects.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
;; It is unclear how to run the tests. They require a running local
|
|
||||||
;; solr server.
|
|
||||||
#:tests? #false
|
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'set-gdal-lib-path
|
(replace 'check
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(setenv "GDAL_LIBRARY_PATH"
|
(when tests?
|
||||||
(string-append (assoc-ref inputs "gdal")
|
(invoke "python" "test_haystack/run_tests.py"))))
|
||||||
"/lib"))))
|
|
||||||
;; Importing this module requires setting up a Django project.
|
;; Importing this module requires setting up a Django project.
|
||||||
(delete 'sanity-check))))
|
(delete 'sanity-check))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-django python-packaging))
|
(list python-django python-packaging))
|
||||||
(inputs (list gdal))
|
;; (inputs (list gdal)) ; it's optional, tests fail when provided
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-coverage
|
(list python-coverage
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
|
Loading…
Add table
Reference in a new issue