summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/django.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index c3af347354..382207bbcb 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1249,7 +1249,11 @@ FileFields during tests.")
                (base32
                 "06041a8icazzp73kg93c7k1ska12wvkq7fpcad0l0sm1qnxx5yx7"))))
     (build-system python-build-system)
-    (arguments '(#:tests? #f))          ;no tests
+    (arguments
+     '(#:tests? #f                      ;no tests
+       #:phases (modify-phases %standard-phases
+                  ;; Importing this module requires a Django project.
+                  (delete 'sanity-check))))
     (propagated-inputs
      `(("python-certifi" ,python-certifi)
        ("python-django" ,python-django)