guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ae5917bb1f57c819acbd6875d3d7d56cddcd0775
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Feb 10 14:56:40 2026 +0000

    gnu: python-hyperkitty: Update to 1.3.12-1.640d66d, fix tests.
    
    * gnu/packages/mail.scm (python-hyperkitty): Update to
    640d66de417c7d127c8a3ff478228f2edbe9928c commit.
    [arguments] <test-flags>: Skip 2 tests.
    <phases>: Use default 'check phase.
    [native-inputs]: Add python-pytest and python-pytest-django.
    
    Change-Id: Iccc21d7aecc11af04f76f7f246f56d18719305a9
---
 gnu/packages/mail.scm | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9175df92ef..dee1644ad2 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -3830,8 +3830,8 @@ which sends emails to HyperKitty, the official Mailman3 
web archiver.")
 (define-public python-hyperkitty
   ;; 1.3.12 was released in 2024 where master provides comparability with
   ;; Django 5, use the latest commit instead of the tag for now.
-  (let ((commit "9a008473fadb95370cd54b0782df9fb956e323c0")
-        (revision "0"))
+  (let ((commit "640d66de417c7d127c8a3ff478228f2edbe9928c")
+        (revision "1"))
   (package
     (name "python-hyperkitty")
     (version (git-version "1.3.12" revision commit))
@@ -3846,14 +3846,19 @@ which sends emails to HyperKitty, the official Mailman3 
web archiver.")
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:phases
-      '(modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               (invoke "example_project/manage.py" "test"
-                       "--settings=hyperkitty.tests.settings_test"
-                       "--pythonpath=.")))))))
+      ;; tests: 362 passed, 3 skipped, 2 deselected, 2 xfailed, 10 warnings
+      #:test-flags
+      #~(list #$@(map (lambda (test)
+                        (string-append "--deselect=hyperkitty/tests/views/"
+                                       "test_accounts.py"
+                                       "::AccountViewsTestCase::"
+                                       test))
+                      ;; django.template.exceptions.TemplateDoesNotExist:
+                      ;; socialaccount/snippets/login_extra.html
+                      (list "test_login_page"
+                            ;; django.template.exceptions.TemplateDoesNotExist:
+                            ;; socialaccount/snippets/login_extra.html
+                            "test_redirect_to_login")))))
     (propagated-inputs
      (list python-dateutil
            python-django
@@ -3878,6 +3883,8 @@ which sends emails to HyperKitty, the official Mailman3 
web archiver.")
      (list tzdata-for-tests
            python-beautifulsoup4
            python-pdm-backend
+           python-pytest
+           python-pytest-django
            python-whoosh))
     (home-page "https://gitlab.com/mailman/hyperkitty";)
     (synopsis "Web interface to access GNU Mailman v3 archives")

Reply via email to