summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-06-08 10:44:17 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-06-08 10:44:37 +0100
commitecb17b47ef74e1335a3c00964969bff2bfdcfce1 (patch)
tree8ee052ec31a007ab41541e32661b7debfeec0727 /gnu/packages
parent173adaae5b3bf9ed4f579fca40477710d3e50b80 (diff)
gnu: python-django-allauth: Include all package data files.
Upstream's pyproject.toml includes only "*.mo" files, this change adds all required data files to the final built package and force tests to use installed package. * gnu/packages/django.scm (python-django-allauth): [phases]{include-package-data, remove-local-source}: New phases. Fixes: guix/guix#8975 Change-Id: I46927b11c3ad56abf0351dc7dab4ca82d9db15ce
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/django.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 8cda1bf603d..0beffc95fb5 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -807,7 +807,22 @@ them do this.")
807 ;; tests: 1812 passed, 9 warnings 807 ;; tests: 1812 passed, 9 warnings
808 #:test-flags 808 #:test-flags
809 ;; XXX: KeyError: location 809 ;; XXX: KeyError: location
810 #~(list "--ignore=allauth/socialaccount/providers/openid/tests.py"))) 810 #~(list "--ignore=allauth/socialaccount/providers/openid/tests.py")
811 #:phases
812 #~(modify-phases %standard-phases
813 (add-after 'unpack 'include-package-data
814 (lambda _
815 ;; XXX: Report upstream.
816 (substitute* "pyproject.toml"
817 (("\"\\*\\.mo\"" all)
818 (string-join
819 (list all "'*.html'" "'*.md'" "'*.txt'" "'*.yaml'"
820 "'*.xml'")
821 ", ")))))
822 (add-before 'check 'remove-local-source
823 (lambda _
824 ;; To force tests using installed package.
825 (delete-file-recursively "allauth"))))))
811 (propagated-inputs 826 (propagated-inputs
812 (list python-asgiref 827 (list python-asgiref
813 python-django 828 python-django