guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#55474] [PATCH v5 29/55] gnu: python-django-mailman3: Update to 1.3.


From: Nicolas Graves
Subject: [bug#55474] [PATCH v5 29/55] gnu: python-django-mailman3: Update to 1.3.8.
Date: Sun, 25 Jun 2023 18:57:30 +0200

* gnu/packages/mail.scm (python-django-mailman3): Update to 1.3.8.
[build-system]: Use pyproject-build-system.
[arguments](phases): Set DJANGO_SETTINGS_MODULE in the invoke call.
[native-inputs]: Add tzdata-for-tests.
---
 gnu/packages/mail.scm | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 801555803a..bf26215151 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -3555,29 +3555,28 @@ (define-public mlmmj
 (define-public python-django-mailman3
   (package
     (name "python-django-mailman3")
-    (version "1.3.7")
+    (version "1.3.8")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "django-mailman3" version))
         (sha256
-         (base32
-          "1dzycnwdr1gavs1dgmcv1lz24x0fkp8y864fy52fgbz72d6c5a3f"))))
-    (build-system python-build-system)
+         (base32 "0ma4q6ffyz2qhlg3cw0kbxsvwli41154p1zgv5h93l3r0s4p4xhb"))))
+    (build-system pyproject-build-system)
     (arguments
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (setenv "DJANGO_SETTINGS_MODULE"
-                     "django_mailman3.tests.settings_test")
-             (invoke "django-admin" "test"
-                     "--pythonpath=."))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "django-admin" "test"
+                     "--settings=django_mailman3.tests.settings_test"
+                     "--pythonpath=.")))))))
     (propagated-inputs
      (list python-django python-django-allauth python-django-gravatar2
            python-mailmanclient python-pytz))
     (native-inputs
-     (list python-mock))
+     (list python-mock tzdata-for-tests))
     (home-page "https://gitlab.com/mailman/django-mailman3";)
     (synopsis "Django library to help interaction with Mailman")
     (description
-- 
2.40.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]