gnu: alot: Update to v0.12.

* gnu/packages/mail.scm (alot): Update to v0.12.
[arguments] <tests?, test-flags>: Enable, skip only 4 problematic tests.
<phases>: 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 <mail@sebastiangibb.de>
Change-Id: Id8dec975bf1bd8ceff61ba589db348cc566e6a47
Co-authored-by: Sergey Trofimov <sarg@sarg.org.ru>
This commit is contained in:
Sharlatan Hellseher 2026-01-24 23:13:52 +00:00
parent 8e2fa683f6
commit d885f5e526
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -60,12 +60,13 @@
;;; Copyright © 2024, 2025 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024, 2025 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024, 2025 Ashish SHUKLA <ashish.is@lostca.se> ;;; Copyright © 2024, 2025 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2025 Tanguy Le Carrour <tanguy@bioneland.org> ;;; Copyright © 2025 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; Copyright © 2025-2026 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Jelle Licht <jlicht@fsfe.org> ;;; Copyright © 2025 Jelle Licht <jlicht@fsfe.org>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2025 Zacchaeus <eikcaz@zacchae.us> ;;; Copyright © 2025 Zacchaeus <eikcaz@zacchae.us>
;;; Copyright © 2025 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2025 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu> ;;; Copyright © 2026 Carlos Durán Domínguez <wurt@wurt.eu>
;;; Copyright © 2026 Sergey Trofimov <sarg@sarg.org.ru>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1412,7 +1413,7 @@ attachments, create new maildirs, and so on.")
(define-public alot (define-public alot
(package (package
(name "alot") (name "alot")
(version "0.11") (version "v0.12")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -1421,31 +1422,58 @@ attachments, create new maildirs, and so on.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "19rn587n81gwx1f49bvm34m60708h5z47hcgiaqlpsznbv792xlr")))) (base32 "018zqpjrl3cggj1myysjj04a054mg890khhdh1qjmd70k8l3w1di"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
;; TODO: Tests fail with error: alot.settings.errors.ConfigError: ;; tests: 334 passed, 4 deselected, 9 xfailed, 29 warnings, 11 subtests
;; failed to read notmuch config with command #:test-flags
;; #~(list
;; CI is complex, see: <.github/workflows/test.yml>. "-k" (string-join
#:tests? #f ;; 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 #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'include-defaults
(lambda _ (lambda _
(substitute* "pyproject.toml" (substitute* "pyproject.toml"
;; python-gpg is added and it's on the latest version. (("setuptools_scm]")
(("gpg>1.10.0") "gpg"))))))) "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:
;; <https://codeberg.org/guix/guix/pulls/2812>.
(("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 (native-inputs
(list procps (list gawk
procps
python-pytest
python-setuptools-scm
python-setuptools)) python-setuptools))
(inputs (inputs
(list gnupg (list gnupg
python-configobj python-configobj
python-gpg python-gpg
python-notmuch2
python-magic python-magic
python-notmuch2
;; python-standard-mailcap ;Python > 3.12
python-twisted python-twisted
python-urwid python-urwid
python-urwidtrees)) python-urwidtrees))