gnu: python-django-testing: Fix tests.
authorEfraim Flashner <efraim@flashner.co.il>
Tue, 21 Jul 2020 11:17:25 +0000 (14:17 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Tue, 21 Jul 2020 12:30:08 +0000 (15:30 +0300)
* gnu/packages/django.scm (python-django-tagging)[arguments]: Use custom
'check phase.
[inputs]: Add python-django.

gnu/packages/django.scm

index 7c89757..ce23946 100644 (file)
@@ -1089,6 +1089,15 @@ higher quality while welcoming newcomers.")
         (base32
          "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings")
+             (invoke "django-admin" "test" "--pythonpath=."))))))
+    (inputs
+     `(("python-django" ,python-django)))
     (home-page "https://github.com/Fantomas42/django-tagging")
     (synopsis "Generic tagging application for Django")
     (description "This package provides a generic tagging application for