From 0dba6968654a74f90e3fa4dfda0d2bdc09201c6a Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 27 Jan 2026 11:16:06 +0100 Subject: [PATCH] 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 --- 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 1ade9b9b83..1376909626 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -36965,7 +36965,7 @@ tables.") (define-public python-textual (package (name "python-textual") - (version "3.5.0") + (version "7.4.0") (source (origin (method git-fetch) @@ -36974,13 +36974,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" @@ -36995,9 +36996,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