gnu: python-django-pipeline: Do not alter PYTHONPATH.

* gnu/packages/django.scm (python-django-pipeline): Remove trailing #t.
[phases]{check}: Do not alter PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-01-23 00:25:24 -05:00
parent 905127eb18
commit de66b6fedb
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -746,14 +746,9 @@ (define-public python-django-pipeline
(which "env")))))
(replace 'check
(lambda*(#:key tests? #:allow-other-keys)
(or
(not tests?)
(begin
(setenv "PYTHONPATH"
(string-append (getcwd) ":"
(getenv "PYTHONPATH")))
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
(invoke "django-admin" "test" "tests"))))))))
(when tests?
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
(invoke "django-admin" "test" "tests")))))))
(native-inputs
`(("python-django" ,python-django)))
(propagated-inputs