gnu: python-django-url-filter: Do not alter PYTHONPATH.

* gnu/packages/django.scm (python-django-url-filter)
[phases]: Delete trailing #t.
{check}: Do not alter PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-01-23 00:35:14 -05:00
parent 1df75a20b0
commit 3d9e8062bf
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1236,15 +1236,11 @@ (define-public python-django-url-filter
;; Do not depend on compatibility package for old
;; Python versions.
(substitute* "requirements.txt"
(("enum-compat") ""))
#t))
(("enum-compat") ""))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(begin
(setenv "PYTHONPATH"
(string-append "./build/lib:.:"
(getenv "PYTHONPATH")))
(setenv "DJANGO_SETTINGS_MODULE"
"test_project.settings")
(invoke "pytest" "-vv" "--doctest-modules"