From d885f5e526e1e42ea1ace7a0776cae19ccc1663c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 24 Jan 2026 23:13:52 +0000 Subject: [PATCH] gnu: alot: Update to v0.12. * gnu/packages/mail.scm (alot): Update to v0.12. [arguments] : Enable, skip only 4 problematic tests. : Add 'include-defaults, 'fix-share-path, and 'install-themes. [native-inputs]: Add gawk, python-pytest, and python-setuptools-scm. Fixes: guix/guix#5797 Reported-by: Sebastian Gibb Change-Id: Id8dec975bf1bd8ceff61ba589db348cc566e6a47 Co-authored-by: Sergey Trofimov --- gnu/packages/mail.scm | 58 ++++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 15 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 831e475c85d..608d9a98c94 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -60,12 +60,13 @@ ;;; Copyright © 2024, 2025 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024, 2025 Ashish SHUKLA ;;; Copyright © 2025 Tanguy Le Carrour -;;; Copyright © 2025 Sharlatan Hellseher +;;; Copyright © 2025-2026 Sharlatan Hellseher ;;; Copyright © 2025 Jelle Licht ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; Copyright © 2025 Zacchaeus ;;; Copyright © 2025 Andreas Enge ;;; Copyright © 2026 Carlos Durán Domínguez +;;; Copyright © 2026 Sergey Trofimov ;;; ;;; This file is part of GNU Guix. ;;; @@ -1412,7 +1413,7 @@ attachments, create new maildirs, and so on.") (define-public alot (package (name "alot") - (version "0.11") + (version "v0.12") (source (origin (method git-fetch) @@ -1421,31 +1422,58 @@ attachments, create new maildirs, and so on.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "19rn587n81gwx1f49bvm34m60708h5z47hcgiaqlpsznbv792xlr")))) + (base32 "018zqpjrl3cggj1myysjj04a054mg890khhdh1qjmd70k8l3w1di")))) (build-system pyproject-build-system) (arguments (list - ;; TODO: Tests fail with error: alot.settings.errors.ConfigError: - ;; failed to read notmuch config with command - ;; - ;; CI is complex, see: <.github/workflows/test.yml>. - #:tests? #f + ;; tests: 334 passed, 4 deselected, 9 xfailed, 29 warnings, 11 subtests + #:test-flags + #~(list + "-k" (string-join + ;; alot.settings.errors.ConfigError: failed to read notmuch + ;; config with command ... + (list "not test_read_notmuch_config_doesnt_exist" + "test_reading_synchronize_flags_from_notmuch_config" + "test_reload_notmuch_config" + "test_save_named_query") + " and not ")) #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "pyproject.toml" - ;; python-gpg is added and it's on the latest version. - (("gpg>1.10.0") "gpg"))))))) + (add-after 'unpack 'include-defaults + (lambda _ + (substitute* "pyproject.toml" + (("setuptools_scm]") + "setuptools.package-data]\nalot = [\"defaults/*\"]\n")))) + (add-after 'unpack 'fix-share-path + (lambda _ + (substitute* "alot/settings/manager.py" + (("/usr/share") + (string-append #$output "/share"))))) + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; python-gpg is added and it's on the latest version from + ;; PyPI, where Git provides v2.0.0, see: + ;; . + (("gpg>1.10.0") "gpg")))) + (add-after 'install 'install-themes + (lambda _ + (let ((share (string-append #$output "/share/alot"))) + (mkdir-p share) + (copy-recursively "extra/themes" share))))))) (native-inputs - (list procps + (list gawk + procps + python-pytest + python-setuptools-scm python-setuptools)) (inputs (list gnupg python-configobj python-gpg - python-notmuch2 python-magic + python-notmuch2 + ;; python-standard-mailcap ;Python > 3.12 python-twisted python-urwid python-urwidtrees))