guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit acc524a5d437f60f67cc9f7ffa53bf31b5b35f2d
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jan 27 11:16:06 2026 +0100

    gnu: python-textual: Update to 7.4.0.
    
    * gnu/packages/python-build.scm (python-textual): Update to 7.4.0.
    [arguments]<#:test-flags>: Align style.
    <#:phases>: Add phase 'relax-requirements.
    [propagated-inputs]: Add python-mdit-py-plugins.
    * gnu/packages/python-xyz.scm : Add comment.
    
    Change-Id: I064dd81b81568526c986f8dd667b693b5a22e32c
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-build.scm |  1 +
 gnu/packages/python-xyz.scm   | 24 +++++++++++++++++-------
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index d627522651..31b21bb57c 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -375,6 +375,7 @@ write-only counterpart to Tomli, which is a read-only TOML 
parser.")
 (define-public python-pygments
   (package
     (name "python-pygments")
+    ;; XXX: When updating, drop python-textual 'relax-requirements phase.
     (version "2.19.1")
     (source
      (origin
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fa4e2e5e19..2ae439356d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36877,7 +36877,7 @@ tables.")
 (define-public python-textual
   (package
     (name "python-textual")
-    (version "3.5.0")
+    (version "7.4.0")
     (source
      (origin
        (method git-fetch)
@@ -36886,13 +36886,14 @@ tables.")
               (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1sldkhy8phk9c7pln70dyb6aya7qpxb5niym9s91z144dv6ykgws"))))
+        (base32 "0xnfb8g0p66f6i4kzd6l2y2cp1pm33la1rj0hbdws72j5rcpq0nv"))))
     (build-system pyproject-build-system)
     (arguments
-     (list #:test-flags
-           ;; Snapshot tests require python-pytest-textual-snapshot which
-           ;; in turn depends on python-textual.
-           '(list "--ignore=tests/snapshot_tests/test_snapshots.py"
+     (list
+      #:test-flags
+      ;; Snapshot tests require python-pytest-textual-snapshot which
+      ;; in turn depends on python-textual.
+      '(list "--ignore=tests/snapshot_tests/test_snapshots.py"
              "-k" (string-append
                    ;; Broken for unknown reason.
                    "not test_textual_env_var"
@@ -36907,9 +36908,18 @@ tables.")
                    " and not test_default_theme"
                    " and not test_setting_builtin_themes"
                    " and not test_setting_unknown_theme_raises_exception"
-                   " and not test_registering_and_setting_theme"))))
+                   " and not test_registering_and_setting_theme"
+                   " and not test_progress_bar_width_1fr"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("pygments =.*")
+                 "pygments = \"*\"\n")))))))
     (propagated-inputs
      (list python-markdown-it-py
+           python-mdit-py-plugins
            python-platformdirs
            python-rich
            python-tree-sitter

Reply via email to