guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit d885f5e526e1e42ea1ace7a0776cae19ccc1663c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 24 23:13:52 2026 +0000
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 <[email protected]>
Change-Id: Id8dec975bf1bd8ceff61ba589db348cc566e6a47
Co-authored-by: Sergey Trofimov <[email protected]>
---
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 831e475c85..608d9a98c9 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -60,12 +60,13 @@
;;; Copyright © 2024, 2025 Zheng Junjie <[email protected]>
;;; Copyright © 2024, 2025 Ashish SHUKLA <[email protected]>
;;; Copyright © 2025 Tanguy Le Carrour <[email protected]>
-;;; Copyright © 2025 Sharlatan Hellseher <[email protected]>
+;;; Copyright © 2025-2026 Sharlatan Hellseher <[email protected]>
;;; Copyright © 2025 Jelle Licht <[email protected]>
;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
;;; Copyright © 2025 Zacchaeus <[email protected]>
;;; Copyright © 2025 Andreas Enge <[email protected]>
;;; Copyright © 2026 Carlos Durán Domínguez <[email protected]>
+;;; Copyright © 2026 Sergey Trofimov <[email protected]>
;;;
;;; 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:
+ ;; <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
- (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))