Subject: [PATCH v2 16/17] gnu: Add python-wagtail.

From: Nicolas Graves <[email-masked]>
Date: Tue, 9 Aug 2022 19:13:31 +0200

* gnu/packages/django.scm (python-wagtail): New variable.
---
 gnu/packages/django.scm | 70 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 8400d96898..934aa8e95a 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1514,3 +1514,73 @@ (define-public python-telepath
      "This package provides @code{telepath}, a library for exchanging data
 between Python and JavaScript.")
     (license license:bsd-3)))
+
+(define-public python-wagtail
+  (package
+    (name "python-wagtail")
+    (version "2.16.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "wagtail" version))
+       (sha256
+        (base32 "1alxxj7aiwj1ymaharzxv7sq7kyv555jg5fc1b98aiwxlcdxq8zf"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? inputs #:allow-other-keys)
+             (if tests?
+                 (lambda _
+                   (setenv "DJANGO_SETTINGS_MODULE" "wagtail.tests.settings")
+                   (invoke "django-admin"
+                           "test" "--pythonpath=."
+                           ;; disabling failing tests
+                           "-k" "not test_azure_cdn_get_client"
+                           "-k" "not test_azure_cdn_purge"
+                           "-k" "not test_azure_front_door_get_client"
+                           "-k" "not test_azure_front_door_purge"))))))))
+    (propagated-inputs
+     (list python-anyascii
+           python-beautifulsoup4-4.8
+           python-django
+           python-django-filter
+           python-django-modelcluster
+           python-django-taggit
+           python-django-treebeard
+           python-django-rest-framework
+           python-draftjs-exporter
+           python-html5lib
+           python-l18n
+           python-pillow
+           python-requests
+           python-tablib
+           python-telepath
+           python-willow
+           python-xlsxwriter))
+    (native-inputs
+     (list ;; python-azure-mgmt-cdn ;failing tests
+      ;; python-azure-mgmt-frontdoor ;failing tests
+      python-boto3
+      python-coverage
+      python-dateutil
+      python-doc8
+      python-docutils
+      python-elasticsearch
+      python-flake8
+      python-flake8-blind-except
+      python-flake8-print
+      python-freezegun
+      python-isort
+      python-jinja2
+      python-jinjalint
+      python-openpyxl
+      python-polib
+      python-pytz
+      python-unidecode))
+    (home-page "https://wagtail.org/")
+    (synopsis "A Content Management System (CMS)")
+    (description "This package provides a Content Management System based on
+Django.")
+    (license license:bsd-3)))
-- 
2.37.1