unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0.
@ 2024-01-02 15:03 Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
                   ` (13 more replies)
  0 siblings, 14 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:03 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

Felix Gruber (5):
  gnu: python-markdown-it-py: Update to 3.0.0.
  gnu: python-mdit-py-plugins: Update to 0.4.0.
  gnu: Add python-pygments-next.
  gnu: python-rich: Update to 13.7.0.
  gnu: python-textual: Update to 0.46.0.

 gnu/packages/python-xyz.scm | 134 ++++++++++++++++++------------------
 1 file changed, 68 insertions(+), 66 deletions(-)


base-commit: 8f03c69b428923dc4d51cda23b10aa7fa7d89f05
-- 
2.41.0





^ permalink raw reply	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
@ 2024-01-02 15:05 ` Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:05 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

* gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0.
[propagated-inputs]: Remove python-typing-extensions; add python-commonmark,
python-linkify-it-py, python-markdown, python-mistletoe,
python-mistune, python-panflute, python-psutil, and python-pyyaml.
[native-inputs]: Remove python-flit; add python-flit-core.

Change-Id: I5dc06b163ddbec0a32a9d7c3da2c834b2e74cd74
---
 gnu/packages/python-xyz.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2afce6c667..3894f77f2e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5482,19 +5482,26 @@ (define-public python-makefun
 (define-public python-markdown-it-py
   (package
     (name "python-markdown-it-py")
-    (version "2.1.0")
+    (version "3.0.0")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "markdown-it-py" version))
               (sha256
                (base32
-                "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
+                "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3"))))
     (build-system pyproject-build-system)
     (arguments (list #:tests? #f))      ;pypi source does not contains tests
-    (native-inputs (list python-flit))
+    (native-inputs (list python-flit-core))
     (propagated-inputs
-     (list python-mdurl
-           python-typing-extensions))
+     (list python-commonmark
+           python-linkify-it-py
+           python-markdown
+           python-mdurl
+           python-mistletoe
+           python-mistune
+           python-panflute
+           python-psutil
+           python-pyyaml))
     (home-page "https://github.com/executablebooks/markdown-it-py")
     (synopsis "Python port of markdown-it")
     (description
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
@ 2024-01-02 15:05 ` Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 3/5] gnu: Add python-pygments-next Felix Gruber
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:05 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

* gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0.

Change-Id: I18ca46abebe125d1a6729c10a3f4fa4a62a145ba
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3894f77f2e..d4f4766c5b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -910,7 +910,7 @@ (define-public python-lunr
 (define-public python-mdit-py-plugins
   (package
     (name "python-mdit-py-plugins")
-    (version "0.3.1")
+    (version "0.4.0")
     (source (origin
               (method git-fetch)        ;for tests
               (uri (git-reference
@@ -919,7 +919,7 @@ (define-public python-mdit-py-plugins
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
+                "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0"))))
     (build-system pyproject-build-system)
     (propagated-inputs
      (list python-markdown-it-py
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 3/5] gnu: Add python-pygments-next.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
@ 2024-01-02 15:05 ` Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:05 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

* gnu/packages/python-xyz.scm (python-pygments-next): New variable.

Change-Id: I12e3e0d6042f34e0375bcbb1dc90ccc9ed9ce050
---
 gnu/packages/python-xyz.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d4f4766c5b..d0a8f900b3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6189,6 +6189,21 @@ (define-public python-pygments
      "Pygments is a syntax highlighting package written in Python.")
     (license license:bsd-2)))
 
+(define-public python-pygments-next
+  (package
+    (inherit python-pygments)
+    (name "python-pygments-next")
+    (version "2.17.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pygments" version))
+       (sha256
+        (base32
+         "0ry3qi4rszkiqb20bmjlzys71dja9i746kvqi8xbxr9dzp4wwins"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-hatchling))))
+
 (define-public python-pygments-github-lexers
   (package
     (name "python-pygments-github-lexers")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (2 preceding siblings ...)
  2024-01-02 15:05 ` [bug#68207] [PATCH 3/5] gnu: Add python-pygments-next Felix Gruber
@ 2024-01-02 15:05 ` Felix Gruber
  2024-01-02 15:05 ` [bug#68207] [PATCH 5/5] gnu: python-textual: Update to 0.46.0 Felix Gruber
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:05 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

* gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0.
[source]: Use git-fetch since pypi package doesn't include tests.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase.
[propagated-inputs]: Remove python-attrs, python-colorama,
python-commonmark and python-typingextensions; add
python-ipywidgets and python-markdown-it-py; replace python-pygments
with python-pygments-next.
[native-inputs]: Add python-poetry-core; remove tests (which are now
included in new [source]).

Change-Id: I15f7928fc376d8c2556ca2965fe44453bd15f248
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++-------------------------
 1 file changed, 15 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d0a8f900b3..25f123e904 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18360,42 +18360,23 @@ (define-public python-slugid
 (define-public python-rich
   (package
     (name "python-rich")
-    (version "12.4.1")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "rich" version))
-              (sha256
-               (base32
-                "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs tests? #:allow-other-keys)
-             (when tests?
-               (copy-recursively (string-append
-                                  (assoc-ref inputs "tests") "/tests")
-                                 "tests")
-               (invoke "python" "-m" "pytest" "-vv")))))))
+    (version "13.7.0")
+    (source
+      (origin
+        ;; There are no tests in the PyPI tarball.
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/willmcgugan/rich")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g"))))
+    (build-system pyproject-build-system)
     (propagated-inputs
-     (list python-attrs python-colorama python-commonmark python-pygments
-           python-typing-extensions))
+     (list python-ipywidgets python-markdown-it-py python-pygments-next))
     (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
-           (method git-fetch)
-           (uri (git-reference
-                 (url "https://github.com/willmcgugan/rich")
-                 (commit (string-append "v" version))))
-           (file-name (git-file-name name version))
-           (sha256
-            (base32
-             "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9"))))))
+     (list python-poetry-core python-pytest))
     (home-page "https://github.com/willmcgugan/rich")
     (synopsis "Render rich text and more to the terminal")
     (description
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 5/5] gnu: python-textual: Update to 0.46.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (3 preceding siblings ...)
  2024-01-02 15:05 ` [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
@ 2024-01-02 15:05 ` Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1 Felix Gruber
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-01-02 15:05 UTC (permalink / raw)
  To: 68207; +Cc: Felix Gruber

* gnu/packages/python-xyz.scm (python-textual): Update to 0.46.0.
[source]: Download from github as pypi package does not include tests.
[build-system]: Change to pyproject-build-system.
[arguments]: Remove custom 'check phase; add #:test-flags to disable
broken tests.
[propagated-inputs]: Add python-markdown-it-py, python-mdit-py-plugins
and python-tree-sitter.
[native-inputs]: Add python-poetry-core and python-pytest-asyncio.

Change-Id: Ib144dc87f73e91d4c9d2e8f91ce6ce7a86a481a9
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++++++++-------------------
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 25f123e904..3a4681a25f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -108,7 +108,7 @@
 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
 ;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
-;;; Copyright © 2021, 2022, 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
@@ -264,6 +264,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages tree-sitter)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages web)
@@ -18410,20 +18411,8 @@ (define-public python-rich-click
 (define-public python-textual
   (package
     (name "python-textual")
-    (version "0.1.18")
+    (version "0.46.0")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "textual" version))
-              (sha256
-               (base32
-                "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
-    (build-system python-build-system)
-    (arguments
-     (let ((tests
-            ;; The release on pypi comes without tests.  We can't build
-            ;; from this checkout, though, because installation requires
-            ;; an invocation of poetry.
-            (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/Textualize/textual")
@@ -18431,19 +18420,29 @@ (define-public python-textual
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (replace 'check
-                   (lambda* (#:key tests? #:allow-other-keys)
-                     (when tests?
-                       (copy-recursively #$(file-append tests "/tests")
-                                         "tests")
-                       (invoke "python" "-m" "pytest" "-vv"))))))))
+                "0gjlmr1908va9m13333iq4il1gs8r4m8qrxhc49iyfy9m4xbml0v"))))
+    (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"
+                  "-k" (string-append
+                         ;broken for unknown reason
+                         "not test_textual_env_var"
+                         ; tests that require python-treesitter-languages
+                         " and not test_register_language"
+                         " and not test_register_language_existing_language"
+                         ))))
     (propagated-inputs
-     (list python-rich python-typing-extensions))
+     (list python-markdown-it-py
+           python-mdit-py-plugins
+           python-rich
+           python-tree-sitter
+           ; python-tree-sitter-languages
+           python-typing-extensions))
     (native-inputs
-     (list python-pytest))
+     (list python-poetry-core python-pytest python-pytest-asyncio))
     (home-page "https://github.com/Textualize/textual")
     (synopsis "Build text user interfaces in Python")
     (description "Textual is a @acronym{TUI, Text User Interface} framework
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (4 preceding siblings ...)
  2024-01-02 15:05 ` [bug#68207] [PATCH 5/5] gnu: python-textual: Update to 0.46.0 Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
                   ` (7 subsequent siblings)
  13 siblings, 1 reply; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

v2 of the patchset updates python-textual to 0.50.1 instead of 0.46.0. I
had to disable one more broken test in python-textual. The rest of the
commits remain unchanged.

Felix Gruber (5):
  gnu: python-markdown-it-py: Update to 3.0.0.
  gnu: python-mdit-py-plugins: Update to 0.4.0.
  gnu: Add python-pygments-next.
  gnu: python-rich: Update to 13.7.0.
  gnu: python-textual: Update to 0.50.1.

 gnu/packages/python-xyz.scm | 134 ++++++++++++++++++------------------
 1 file changed, 68 insertions(+), 66 deletions(-)


base-commit: bb92a4d7bc71197a51eea9075387c5313f299085
-- 
2.43.0





^ permalink raw reply	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 1/5] gnu: python-markdown-it-py: Update to 3.0.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (5 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1 Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0.
[propagated-inputs]: Remove python-typing-extensions; add python-commonmark,
python-linkify-it-py, python-markdown, python-mistletoe,
python-mistune, python-panflute, python-psutil, and python-pyyaml.
[native-inputs]: Remove python-flit; add python-flit-core.

Change-Id: I5dc06b163ddbec0a32a9d7c3da2c834b2e74cd74
---
 gnu/packages/python-xyz.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a645c45a4c..6a28836acf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5881,19 +5881,26 @@ (define-public python-makefun
 (define-public python-markdown-it-py
   (package
     (name "python-markdown-it-py")
-    (version "2.1.0")
+    (version "3.0.0")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "markdown-it-py" version))
               (sha256
                (base32
-                "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
+                "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3"))))
     (build-system pyproject-build-system)
     (arguments (list #:tests? #f))      ;pypi source does not contains tests
-    (native-inputs (list python-flit))
+    (native-inputs (list python-flit-core))
     (propagated-inputs
-     (list python-mdurl
-           python-typing-extensions))
+     (list python-commonmark
+           python-linkify-it-py
+           python-markdown
+           python-mdurl
+           python-mistletoe
+           python-mistune
+           python-panflute
+           python-psutil
+           python-pyyaml))
     (home-page "https://github.com/executablebooks/markdown-it-py")
     (synopsis "Python port of markdown-it")
     (description
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (6 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 3/5] gnu: Add python-pygments-next Felix Gruber
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0.

Change-Id: I18ca46abebe125d1a6729c10a3f4fa4a62a145ba
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6a28836acf..30f6f1fb3e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1124,7 +1124,7 @@ (define-public python-lunr
 (define-public python-mdit-py-plugins
   (package
     (name "python-mdit-py-plugins")
-    (version "0.3.1")
+    (version "0.4.0")
     (source (origin
               (method git-fetch)        ;for tests
               (uri (git-reference
@@ -1133,7 +1133,7 @@ (define-public python-mdit-py-plugins
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
+                "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0"))))
     (build-system pyproject-build-system)
     (propagated-inputs
      (list python-markdown-it-py
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 3/5] gnu: Add python-pygments-next.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (7 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-pygments-next): New variable.

Change-Id: I12e3e0d6042f34e0375bcbb1dc90ccc9ed9ce050
---
 gnu/packages/python-xyz.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 30f6f1fb3e..b3eed56d06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6588,6 +6588,21 @@ (define-public python-pygments
      "Pygments is a syntax highlighting package written in Python.")
     (license license:bsd-2)))
 
+(define-public python-pygments-next
+  (package
+    (inherit python-pygments)
+    (name "python-pygments-next")
+    (version "2.17.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pygments" version))
+       (sha256
+        (base32
+         "0ry3qi4rszkiqb20bmjlzys71dja9i746kvqi8xbxr9dzp4wwins"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-hatchling))))
+
 (define-public python-pygments-github-lexers
   (package
     (name "python-pygments-github-lexers")
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (8 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 3/5] gnu: Add python-pygments-next Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0.
[source]: Use git-fetch since pypi package doesn't include tests.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase.
[propagated-inputs]: Remove python-attrs, python-colorama,
python-commonmark and python-typingextensions; add
python-ipywidgets and python-markdown-it-py; replace python-pygments
with python-pygments-next.
[native-inputs]: Add python-poetry-core; remove tests (which are now
included in new [source]).

Change-Id: I15f7928fc376d8c2556ca2965fe44453bd15f248
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++-------------------------
 1 file changed, 15 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b3eed56d06..afd5caf541 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19192,42 +19192,23 @@ (define-public python-slugid
 (define-public python-rich
   (package
     (name "python-rich")
-    (version "12.4.1")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "rich" version))
-              (sha256
-               (base32
-                "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs tests? #:allow-other-keys)
-             (when tests?
-               (copy-recursively (string-append
-                                  (assoc-ref inputs "tests") "/tests")
-                                 "tests")
-               (invoke "python" "-m" "pytest" "-vv")))))))
+    (version "13.7.0")
+    (source
+      (origin
+        ;; There are no tests in the PyPI tarball.
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/willmcgugan/rich")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g"))))
+    (build-system pyproject-build-system)
     (propagated-inputs
-     (list python-attrs python-colorama python-commonmark python-pygments
-           python-typing-extensions))
+     (list python-ipywidgets python-markdown-it-py python-pygments-next))
     (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
-           (method git-fetch)
-           (uri (git-reference
-                 (url "https://github.com/willmcgugan/rich")
-                 (commit (string-append "v" version))))
-           (file-name (git-file-name name version))
-           (sha256
-            (base32
-             "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9"))))))
+     (list python-poetry-core python-pytest))
     (home-page "https://github.com/willmcgugan/rich")
     (synopsis "Render rich text and more to the terminal")
     (description
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (9 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
@ 2024-02-12 17:55 ` Felix Gruber
  2024-02-13 14:13 ` [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Sharlatan Hellseher
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 17:55 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-textual): Update to 0.50.1.
[source]: Download from github as pypi package does not include tests.
[build-system]: Change to pyproject-build-system.
[arguments]: Remove custom 'check phase; add #:test-flags to disable
broken tests.
[propagated-inputs]: Add python-markdown-it-py, python-mdit-py-plugins
and python-tree-sitter.
[native-inputs]: Add python-poetry-core and python-pytest-asyncio.

Change-Id: Ib144dc87f73e91d4c9d2e8f91ce6ce7a86a481a9
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++++++++-------------------
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index afd5caf541..1d25ad6f8a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -108,7 +108,7 @@
 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
 ;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
-;;; Copyright © 2021, 2022, 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
@@ -266,6 +266,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages tree-sitter)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages web)
@@ -19242,20 +19243,8 @@ (define-public python-rich-click
 (define-public python-textual
   (package
     (name "python-textual")
-    (version "0.1.18")
+    (version "0.50.1")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "textual" version))
-              (sha256
-               (base32
-                "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
-    (build-system python-build-system)
-    (arguments
-     (let ((tests
-            ;; The release on pypi comes without tests.  We can't build
-            ;; from this checkout, though, because installation requires
-            ;; an invocation of poetry.
-            (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/Textualize/textual")
@@ -19263,19 +19252,29 @@ (define-public python-textual
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (replace 'check
-                   (lambda* (#:key tests? #:allow-other-keys)
-                     (when tests?
-                       (copy-recursively #$(file-append tests "/tests")
-                                         "tests")
-                       (invoke "python" "-m" "pytest" "-vv"))))))))
+                "10mmmgsq5pblr9ijgyln79p3hc7sah56k2hkzlvm2abrr9gwgpcf"))))
+    (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"
+                  "-k" (string-append
+                         ;broken for unknown reason
+                         "not test_textual_env_var"
+                         ; tests that require python-treesitter-languages
+                         " and not test_register_language"
+                         " and not test_register_language_existing_language"
+                         ))))
     (propagated-inputs
-     (list python-rich python-typing-extensions))
+     (list python-markdown-it-py
+           python-mdit-py-plugins
+           python-rich
+           python-tree-sitter
+           ; python-tree-sitter-languages
+           python-typing-extensions))
     (native-inputs
-     (list python-pytest))
+     (list python-poetry-core python-pytest python-pytest-asyncio))
     (home-page "https://github.com/Textualize/textual")
     (synopsis "Build text user interfaces in Python")
     (description "Textual is a @acronym{TUI, Text User Interface} framework
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 0/5] Update python-textual to 0.50.1.
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1 Felix Gruber
@ 2024-02-12 18:04   ` Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
                       ` (4 more replies)
  0 siblings, 5 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

The last version of the patchset was missing a line to disable a new
broken test in python-textual.

Felix Gruber (5):
  gnu: python-markdown-it-py: Update to 3.0.0.
  gnu: python-mdit-py-plugins: Update to 0.4.0.
  gnu: Add python-pygments-next.
  gnu: python-rich: Update to 13.7.0.
  gnu: python-textual: Update to 0.50.1.

 gnu/packages/python-xyz.scm | 135 ++++++++++++++++++------------------
 1 file changed, 69 insertions(+), 66 deletions(-)


base-commit: bb92a4d7bc71197a51eea9075387c5313f299085
-- 
2.43.0





^ permalink raw reply	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0.
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
@ 2024-02-12 18:04     ` Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
                       ` (3 subsequent siblings)
  4 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0.
[propagated-inputs]: Remove python-typing-extensions; add python-commonmark,
python-linkify-it-py, python-markdown, python-mistletoe,
python-mistune, python-panflute, python-psutil, and python-pyyaml.
[native-inputs]: Remove python-flit; add python-flit-core.

Change-Id: I5dc06b163ddbec0a32a9d7c3da2c834b2e74cd74
---
 gnu/packages/python-xyz.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a645c45a4c..6a28836acf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5881,19 +5881,26 @@ (define-public python-makefun
 (define-public python-markdown-it-py
   (package
     (name "python-markdown-it-py")
-    (version "2.1.0")
+    (version "3.0.0")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "markdown-it-py" version))
               (sha256
                (base32
-                "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
+                "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3"))))
     (build-system pyproject-build-system)
     (arguments (list #:tests? #f))      ;pypi source does not contains tests
-    (native-inputs (list python-flit))
+    (native-inputs (list python-flit-core))
     (propagated-inputs
-     (list python-mdurl
-           python-typing-extensions))
+     (list python-commonmark
+           python-linkify-it-py
+           python-markdown
+           python-mdurl
+           python-mistletoe
+           python-mistune
+           python-panflute
+           python-psutil
+           python-pyyaml))
     (home-page "https://github.com/executablebooks/markdown-it-py")
     (synopsis "Python port of markdown-it")
     (description
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0.
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
@ 2024-02-12 18:04     ` Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 3/5] gnu: Add python-pygments-next Felix Gruber
                       ` (2 subsequent siblings)
  4 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0.

Change-Id: I18ca46abebe125d1a6729c10a3f4fa4a62a145ba
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6a28836acf..30f6f1fb3e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1124,7 +1124,7 @@ (define-public python-lunr
 (define-public python-mdit-py-plugins
   (package
     (name "python-mdit-py-plugins")
-    (version "0.3.1")
+    (version "0.4.0")
     (source (origin
               (method git-fetch)        ;for tests
               (uri (git-reference
@@ -1133,7 +1133,7 @@ (define-public python-mdit-py-plugins
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
+                "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0"))))
     (build-system pyproject-build-system)
     (propagated-inputs
      (list python-markdown-it-py
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 3/5] gnu: Add python-pygments-next.
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
@ 2024-02-12 18:04     ` Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
  4 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-pygments-next): New variable.

Change-Id: I12e3e0d6042f34e0375bcbb1dc90ccc9ed9ce050
---
 gnu/packages/python-xyz.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 30f6f1fb3e..b3eed56d06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6588,6 +6588,21 @@ (define-public python-pygments
      "Pygments is a syntax highlighting package written in Python.")
     (license license:bsd-2)))
 
+(define-public python-pygments-next
+  (package
+    (inherit python-pygments)
+    (name "python-pygments-next")
+    (version "2.17.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pygments" version))
+       (sha256
+        (base32
+         "0ry3qi4rszkiqb20bmjlzys71dja9i746kvqi8xbxr9dzp4wwins"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-hatchling))))
+
 (define-public python-pygments-github-lexers
   (package
     (name "python-pygments-github-lexers")
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 4/5] gnu: python-rich: Update to 13.7.0.
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
                       ` (2 preceding siblings ...)
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 3/5] gnu: Add python-pygments-next Felix Gruber
@ 2024-02-12 18:04     ` Felix Gruber
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
  4 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0.
[source]: Use git-fetch since pypi package doesn't include tests.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase.
[propagated-inputs]: Remove python-attrs, python-colorama,
python-commonmark and python-typingextensions; add
python-ipywidgets and python-markdown-it-py; replace python-pygments
with python-pygments-next.
[native-inputs]: Add python-poetry-core; remove tests (which are now
included in new [source]).

Change-Id: I15f7928fc376d8c2556ca2965fe44453bd15f248
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++-------------------------
 1 file changed, 15 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b3eed56d06..afd5caf541 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19192,42 +19192,23 @@ (define-public python-slugid
 (define-public python-rich
   (package
     (name "python-rich")
-    (version "12.4.1")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "rich" version))
-              (sha256
-               (base32
-                "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs tests? #:allow-other-keys)
-             (when tests?
-               (copy-recursively (string-append
-                                  (assoc-ref inputs "tests") "/tests")
-                                 "tests")
-               (invoke "python" "-m" "pytest" "-vv")))))))
+    (version "13.7.0")
+    (source
+      (origin
+        ;; There are no tests in the PyPI tarball.
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/willmcgugan/rich")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g"))))
+    (build-system pyproject-build-system)
     (propagated-inputs
-     (list python-attrs python-colorama python-commonmark python-pygments
-           python-typing-extensions))
+     (list python-ipywidgets python-markdown-it-py python-pygments-next))
     (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
-           (method git-fetch)
-           (uri (git-reference
-                 (url "https://github.com/willmcgugan/rich")
-                 (commit (string-append "v" version))))
-           (file-name (git-file-name name version))
-           (sha256
-            (base32
-             "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9"))))))
+     (list python-poetry-core python-pytest))
     (home-page "https://github.com/willmcgugan/rich")
     (synopsis "Render rich text and more to the terminal")
     (description
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v3 5/5] gnu: python-textual: Update to 0.50.1.
  2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
                       ` (3 preceding siblings ...)
  2024-02-12 18:04     ` [bug#68207] [PATCH v3 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
@ 2024-02-12 18:04     ` Felix Gruber
  4 siblings, 0 replies; 28+ messages in thread
From: Felix Gruber @ 2024-02-12 18:04 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Lars-Dominik Braun, Marius Bakke, Munyoki Kilyungi,
	Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-textual): Update to 0.50.1.
[source]: Download from github as pypi package does not include tests.
[build-system]: Change to pyproject-build-system.
[arguments]: Remove custom 'check phase; add #:test-flags to disable
broken tests.
[propagated-inputs]: Add python-markdown-it-py, python-mdit-py-plugins
and python-tree-sitter.
[native-inputs]: Add python-poetry-core and python-pytest-asyncio.

Change-Id: Ib144dc87f73e91d4c9d2e8f91ce6ce7a86a481a9
---
 gnu/packages/python-xyz.scm | 50 ++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index afd5caf541..28992abb30 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -108,7 +108,7 @@
 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
 ;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
-;;; Copyright © 2021, 2022, 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
@@ -266,6 +266,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages tree-sitter)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages web)
@@ -19242,20 +19243,8 @@ (define-public python-rich-click
 (define-public python-textual
   (package
     (name "python-textual")
-    (version "0.1.18")
+    (version "0.50.1")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "textual" version))
-              (sha256
-               (base32
-                "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
-    (build-system python-build-system)
-    (arguments
-     (let ((tests
-            ;; The release on pypi comes without tests.  We can't build
-            ;; from this checkout, though, because installation requires
-            ;; an invocation of poetry.
-            (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/Textualize/textual")
@@ -19263,19 +19252,30 @@ (define-public python-textual
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (replace 'check
-                   (lambda* (#:key tests? #:allow-other-keys)
-                     (when tests?
-                       (copy-recursively #$(file-append tests "/tests")
-                                         "tests")
-                       (invoke "python" "-m" "pytest" "-vv"))))))))
+                "10mmmgsq5pblr9ijgyln79p3hc7sah56k2hkzlvm2abrr9gwgpcf"))))
+    (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"
+                  "-k" (string-append
+                         ;broken for unknown reason
+                         "not test_textual_env_var"
+                         ; tests that require python-treesitter-languages
+                         " and not test_language_binary_missing"
+                         " and not test_register_language"
+                         " and not test_register_language_existing_language"
+                         ))))
     (propagated-inputs
-     (list python-rich python-typing-extensions))
+     (list python-markdown-it-py
+           python-mdit-py-plugins
+           python-rich
+           python-tree-sitter
+           ; python-tree-sitter-languages
+           python-typing-extensions))
     (native-inputs
-     (list python-pytest))
+     (list python-poetry-core python-pytest python-pytest-asyncio))
     (home-page "https://github.com/Textualize/textual")
     (synopsis "Build text user interfaces in Python")
     (description "Textual is a @acronym{TUI, Text User Interface} framework
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (10 preceding siblings ...)
  2024-02-12 17:55 ` [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
@ 2024-02-13 14:13 ` Sharlatan Hellseher
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
  2024-02-27  9:24 ` bug#68207: [PATCH 0/5] Update python-textual to 0.46.0 Ricardo Wurmus
  13 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:13 UTC (permalink / raw)
  To: 68207; +Cc: felgru

[-- Attachment #1: Type: text/plain, Size: 3619 bytes --]


Hi Felix,

Thank you for the patches!

I've applied v3 on my local checkout, it passed lint and build. It
looks good for me

Some of the packages were failed to build after patches are applied,
I've adjusted some of them (relax requirement, bump versions, disable
more failing tests). Changes included in v4 of the series.

This update is quite expensive as it trigger rebuild of python-scipy.

--8<---------------cut here---------------start------------->8---
./pre-inst-env guix refresh --list-dependent python-textual python-rich python-pygments-next python-mdit-py-plugins python-markdown-it-py

Building the following 124 packages would ensure 301 dependent packages
are rebuilt: python-vaex-core@4.13.0 python-enoslib@8.0.1 httpie@3.2.1
pelican@4.7.2 python-textual@0.50.1 pigx-sars-cov-2@0.0.9
trinityrnaseq@2.13.2 python-pynbody@1.5.2 checkm@1.1.3
python-vireosnp@0.5.7 python-ete3@3.1.3 python-hclust2@1.0.0
python-pairtools@1.0.2 flair@1.6.4 umi-tools@1.0.0 python-plastid@0.6.1
python-cmseq@1.0.4 tombo@1.5.1 pigx@0.0.3 variant-tools@3.1.2
python-metpy@1.6.1 python-cartopy@0.22.0 python-graph-tool@2.59
python-iml@0.6.2 pitivi@2022.06.0 perl-cworld-dekker@1.01
ciri-long@1.0.2 python-biofluff@3.0.4 tadbit@1.0.1-1.5c4c1dd
clipper@2.0.1 tbsp@1.0.0-2.dc30c03 python-iced@0.5.8
python-velocyto@0.17.17 nanopolish@0.14.0 python-cleanlab@2.2.0
python-gpytorch@1.11 python-mapie@0.8.2 lightgbm@2.0.12
python-funsor@0.4.5 python-bbknn@1.6.0 python-fasttext@0.9.2
python-xgboost@1.5.2 python-ripser@0.6.4 python-hdbscan@0.8.33
python-scikit-learn-extra@0.3.0-1.0f95d8d python-scikit-rebate@0.62
python-scanorama@1.7.2 python-deepdish@0.3.7 python-scikit-allel@1.3.5
python-gpy@1.10.0 python-pyts@0.13.0 python-deepxde@1.10.1
python-modin@0.15.1 python-salib@1.4.7 cura@4.13.1
python-pyjanitor@0.26.0 python-scikit-opt@0.6.6 python-astroalign@2.5.1
python-cooltools@0.5.1 python-jwst@1.12.5 python-scikit-fuzzy@0.4.2
python-pandera@0.17.2 python-pysnptools@0.4.11 python-baltica@1.1.2
python-biom-format@2.1.12 python-magic-impute@1.2.1
python-numpy-documentation@1.23.2 cnvkit@0.9.10 python-cesium@0.12.1
python-scikit-rf@0.31.0 orange@3.32.0 python-pydub@0.25.1
python-matplotlib-venn@0.11.5 python-matplotlib-documentation@3.8.2
python-hicexplorer@3.7.2 font-cozette@1.13.0 nototools@0.2.16 gnome@42.4
mate@1.26.1 python-statmake@0.6.0 font-amiri@1.000 weasyprint@56.1
python-sparse@0.14.0 qspectrumanalyzer@2.1.0 gr-satellites@4.6.0
gqrx@2.17.3 urh@2.9.4 gnss-sdr@0.0.17 gr-dsd@1.0.0-0.f9b9936
nanovna-saver@0.5.3 python-dolfin-adjoint@2019.1.0
python-commonroad-route-planner@2022.3 python-pymc@5.10.3
python-goatools@1.3.1 python-poliastro@0.17.0
python-pytorch-geometric@2.4.0 python-fanc@0.9.25 python-pyani@0.2.12
stpipeline@1.8.1 python-bulkvis@2.0.0-2.00a82a9 python-phylophlan@3.0.3
instrain@1.5.4 scregseg@0.1.3 python-multivelo@0.1.2 python-ikarus@0.0.2
r-doubletcollection@1.1.0-1.c0d62f1 fanc@0-1.354401e
python-demuxem@0.1.7 python-episcanpy@0.4.0 python-liana-py@0.1.9
python-cellbender@0.2.2 python-pingouin@0.5.2 python-statannot@0.2.3
python-openturns@1.21.3 python-spacy@3.5.3 python-pythonanywhere@0.12.1
python-pytest-cookies@0.7.0 python-quadpy@0.16.10 python-cplot@0.9.3
python-pyvista@0.42.3 python-pygmsh@7.1.17
python-sphinx-theme-builder@0.2.0b1 clikan@0.2.1-1.55ab29e
jami-docs@0.0.0-2.a48997d
--8<---------------cut here---------------end--------------->8---

Failed when patches are applied, might need more time for investigation;
- python-dolfin-adjoint@2019.1.0

Packages which were failing before patches are aplied and after:
- python-commonroad-route-planner@2022.3


--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (11 preceding siblings ...)
  2024-02-13 14:13 ` [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Sharlatan Hellseher
@ 2024-02-13 14:15 ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0 Sharlatan Hellseher
                     ` (6 more replies)
  2024-02-27  9:24 ` bug#68207: [PATCH 0/5] Update python-textual to 0.46.0 Ricardo Wurmus
  13 siblings, 7 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Sharlatan Hellseher, Lars-Dominik Braun,
	Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher, jgart

From: Felix Gruber <felgru@posteo.net>

* gnu/packages/python-xyz.scm (python-markdown-it-py): Update to 3.0.0.
[propagated-inputs]: Remove python-typing-extensions; add python-commonmark,
python-linkify-it-py, python-markdown, python-mistletoe,
python-mistune, python-panflute, python-psutil, and python-pyyaml.
[native-inputs]: Remove python-flit; add python-flit-core.

Change-Id: I5dc06b163ddbec0a32a9d7c3da2c834b2e74cd74
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a645c45a4c..6a28836acf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5881,19 +5881,26 @@ (define-public python-makefun
 (define-public python-markdown-it-py
   (package
     (name "python-markdown-it-py")
-    (version "2.1.0")
+    (version "3.0.0")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "markdown-it-py" version))
               (sha256
                (base32
-                "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
+                "1swgvyiavak0nmfb31lq5zck5chwhmyf6qb6qwpcav86zaa0mxp3"))))
     (build-system pyproject-build-system)
     (arguments (list #:tests? #f))      ;pypi source does not contains tests
-    (native-inputs (list python-flit))
+    (native-inputs (list python-flit-core))
     (propagated-inputs
-     (list python-mdurl
-           python-typing-extensions))
+     (list python-commonmark
+           python-linkify-it-py
+           python-markdown
+           python-mdurl
+           python-mistletoe
+           python-mistune
+           python-panflute
+           python-psutil
+           python-pyyaml))
     (home-page "https://github.com/executablebooks/markdown-it-py")
     (synopsis "Python port of markdown-it")
     (description

base-commit: e9a6c7094822bc859d0694eeaf8f434317219367
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 3/8] gnu: Add python-pygments-next Sharlatan Hellseher
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Sharlatan Hellseher, Lars-Dominik Braun,
	Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher, jgart

From: Felix Gruber <felgru@posteo.net>

* gnu/packages/python-xyz.scm (python-mdit-py-plugins): Update to 0.4.0.

Change-Id: I18ca46abebe125d1a6729c10a3f4fa4a62a145ba
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6a28836acf..30f6f1fb3e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1124,7 +1124,7 @@ (define-public python-lunr
 (define-public python-mdit-py-plugins
   (package
     (name "python-mdit-py-plugins")
-    (version "0.3.1")
+    (version "0.4.0")
     (source (origin
               (method git-fetch)        ;for tests
               (uri (git-reference
@@ -1133,7 +1133,7 @@ (define-public python-mdit-py-plugins
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
+                "1790fcf3nd9c5j37fx87x3ivfyihk6l74jxj1qxvw3qfyb96w4k0"))))
     (build-system pyproject-build-system)
     (propagated-inputs
      (list python-markdown-it-py
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 3/8] gnu: Add python-pygments-next.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0 Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 4/8] gnu: python-rich: Update to 13.7.0 Sharlatan Hellseher
                     ` (4 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Sharlatan Hellseher, Lars-Dominik Braun,
	Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher, jgart

From: Felix Gruber <felgru@posteo.net>

* gnu/packages/python-xyz.scm (python-pygments-next): New variable.

Change-Id: I12e3e0d6042f34e0375bcbb1dc90ccc9ed9ce050
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 30f6f1fb3e..b3eed56d06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6588,6 +6588,21 @@ (define-public python-pygments
      "Pygments is a syntax highlighting package written in Python.")
     (license license:bsd-2)))
 
+(define-public python-pygments-next
+  (package
+    (inherit python-pygments)
+    (name "python-pygments-next")
+    (version "2.17.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pygments" version))
+       (sha256
+        (base32
+         "0ry3qi4rszkiqb20bmjlzys71dja9i746kvqi8xbxr9dzp4wwins"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-hatchling))))
+
 (define-public python-pygments-github-lexers
   (package
     (name "python-pygments-github-lexers")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 4/8] gnu: python-rich: Update to 13.7.0.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0 Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 3/8] gnu: Add python-pygments-next Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1 Sharlatan Hellseher
                     ` (3 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Sharlatan Hellseher, Lars-Dominik Braun,
	Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher, jgart

From: Felix Gruber <felgru@posteo.net>

* gnu/packages/python-xyz.scm (python-rich): Update to 13.7.0.
[source]: Use git-fetch since pypi package doesn't include tests.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase.
[propagated-inputs]: Remove python-attrs, python-colorama,
python-commonmark and python-typingextensions; add
python-ipywidgets and python-markdown-it-py; replace python-pygments
with python-pygments-next.
[native-inputs]: Add python-poetry-core; remove tests (which are now
included in new [source]).

Change-Id: I15f7928fc376d8c2556ca2965fe44453bd15f248
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++-------------------------
 1 file changed, 15 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b3eed56d06..afd5caf541 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19192,42 +19192,23 @@ (define-public python-slugid
 (define-public python-rich
   (package
     (name "python-rich")
-    (version "12.4.1")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "rich" version))
-              (sha256
-               (base32
-                "149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs tests? #:allow-other-keys)
-             (when tests?
-               (copy-recursively (string-append
-                                  (assoc-ref inputs "tests") "/tests")
-                                 "tests")
-               (invoke "python" "-m" "pytest" "-vv")))))))
+    (version "13.7.0")
+    (source
+      (origin
+        ;; There are no tests in the PyPI tarball.
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/willmcgugan/rich")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "0qyhw2vvk17qdmfrmi45z4dd0fkwx3l2qrf3iy0yc2y7pfgrmg9g"))))
+    (build-system pyproject-build-system)
     (propagated-inputs
-     (list python-attrs python-colorama python-commonmark python-pygments
-           python-typing-extensions))
+     (list python-ipywidgets python-markdown-it-py python-pygments-next))
     (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
-           (method git-fetch)
-           (uri (git-reference
-                 (url "https://github.com/willmcgugan/rich")
-                 (commit (string-append "v" version))))
-           (file-name (git-file-name name version))
-           (sha256
-            (base32
-             "17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9"))))))
+     (list python-poetry-core python-pytest))
     (home-page "https://github.com/willmcgugan/rich")
     (synopsis "Render rich text and more to the terminal")
     (description
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
                     ` (2 preceding siblings ...)
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 4/8] gnu: python-rich: Update to 13.7.0 Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 6/8] gnu: python-jupytext: Update to 1.15.0 Sharlatan Hellseher
                     ` (2 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Felix Gruber, Sharlatan Hellseher, Lars-Dominik Braun,
	Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher, jgart

From: Felix Gruber <felgru@posteo.net>

* gnu/packages/python-xyz.scm (python-textual): Update to 0.50.1.
[source]: Download from github as pypi package does not include tests.
[build-system]: Change to pyproject-build-system.
[arguments]: Remove custom 'check phase; add #:test-flags to disable
broken tests.
[propagated-inputs]: Add python-markdown-it-py, python-mdit-py-plugins
and python-tree-sitter.
[native-inputs]: Add python-poetry-core and python-pytest-asyncio.

Change-Id: Ib144dc87f73e91d4c9d2e8f91ce6ce7a86a481a9
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
 gnu/packages/python-xyz.scm | 49 ++++++++++++++++++-------------------
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index afd5caf541..27665e1cad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -108,7 +108,7 @@
 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
 ;;; Copyright © 2021, 2022, 2023 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
-;;; Copyright © 2021, 2022, 2023 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021–2024 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
@@ -266,6 +266,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages tree-sitter)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages web)
@@ -19242,20 +19243,8 @@ (define-public python-rich-click
 (define-public python-textual
   (package
     (name "python-textual")
-    (version "0.1.18")
+    (version "0.50.1")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "textual" version))
-              (sha256
-               (base32
-                "08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
-    (build-system python-build-system)
-    (arguments
-     (let ((tests
-            ;; The release on pypi comes without tests.  We can't build
-            ;; from this checkout, though, because installation requires
-            ;; an invocation of poetry.
-            (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/Textualize/textual")
@@ -19263,19 +19252,29 @@ (define-public python-textual
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (replace 'check
-                   (lambda* (#:key tests? #:allow-other-keys)
-                     (when tests?
-                       (copy-recursively #$(file-append tests "/tests")
-                                         "tests")
-                       (invoke "python" "-m" "pytest" "-vv"))))))))
+                "10mmmgsq5pblr9ijgyln79p3hc7sah56k2hkzlvm2abrr9gwgpcf"))))
+    (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"
+             "-k" (string-append
+                   ;; Broken for unknown reason.
+                   "not test_textual_env_var"
+                   ;; Tests that require python-treesitter-languages.
+                   " and not test_language_binary_missing"
+                   " and not test_register_language"
+                   " and not test_register_language_existing_language"))))
     (propagated-inputs
-     (list python-rich python-typing-extensions))
+     (list python-markdown-it-py
+           python-mdit-py-plugins
+           python-rich
+           python-tree-sitter
+           ;; python-tree-sitter-languages ; optional, not packed yet
+           python-typing-extensions))
     (native-inputs
-     (list python-pytest))
+     (list python-poetry-core python-pytest python-pytest-asyncio))
     (home-page "https://github.com/Textualize/textual")
     (synopsis "Build text user interfaces in Python")
     (description "Textual is a @acronym{TUI, Text User Interface} framework
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 6/8] gnu: python-jupytext: Update to 1.15.0.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
                     ` (3 preceding siblings ...)
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1 Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 7/8] gnu: python-lightning-cloud: Disable tests Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 8/8] gnu: python-myst-parser: Relax some requirements Sharlatan Hellseher
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
	Munyoki Kilyungi, Sharlatan Hellseher, jgart

* gnu/packages/python-xyz.scm (python-jupytext): Update to 1.15.0.

Change-Id: I8cbd4e45eae838cb1733bf8feeb3bc2abe960513
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 27665e1cad..e04c55738e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -339,7 +339,7 @@ (define-public python-janus
 (define-public python-jupytext
   (package
     (name "python-jupytext")
-    (version "1.14.4")
+    (version "1.15.0")
     (source
      (origin
        (method git-fetch)
@@ -348,7 +348,7 @@ (define-public python-jupytext
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "19d443vx597zzxna09qpync9iic3mris80bwm3kd8xaxaq0zq9w4"))))
+        (base32 "0bgf0c4py22ip7qfla8mrmypfh3bg151c8awsr1gvcbw7m4ni01k"))))
     (build-system python-build-system)
     (arguments
      (list
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 7/8] gnu: python-lightning-cloud: Disable tests.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
                     ` (4 preceding siblings ...)
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 6/8] gnu: python-jupytext: Update to 1.15.0 Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 8/8] gnu: python-myst-parser: Relax some requirements Sharlatan Hellseher
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207; +Cc: Sharlatan Hellseher

* gnu/packages/machine-learning.scm (python-lightning-cloud) [arguments]
<#:tests?>: Set to #t as PyPI archive does not provide any.

Change-Id: I406b6515441d01dc1612caa3d3e7b70fa7b2c980
---
 gnu/packages/machine-learning.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 2e20872555..58c607418b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4363,6 +4363,9 @@ (define-public python-lightning-cloud
               (sha256
                (base32
                 "0mqrhq3s23mn8n4i0q791pshn3dgplp0h9ny0pmmp798q0798dzs"))))
+    (arguments
+     (list
+      #:tests? #f)) ; no tests in PyPI arcvhie.
     (build-system pyproject-build-system)
     (propagated-inputs (list python-click
                              python-fastapi-for-pytorch-lightning
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [bug#68207] [PATCH v4 8/8] gnu: python-myst-parser: Relax some requirements.
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
                     ` (5 preceding siblings ...)
  2024-02-13 14:15   ` [bug#68207] [PATCH v4 7/8] gnu: python-lightning-cloud: Disable tests Sharlatan Hellseher
@ 2024-02-13 14:15   ` Sharlatan Hellseher
  6 siblings, 0 replies; 28+ messages in thread
From: Sharlatan Hellseher @ 2024-02-13 14:15 UTC (permalink / raw)
  To: 68207
  Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
	Munyoki Kilyungi, Sharlatan Hellseher, jgart

* gnu/packages/sphinx.scm (python-myst-parser) [arguments]
<#:test-flags>: Disable one more failing test.
<#:phases>: Add 'relax-requirements phase.

Change-Id: I4f77ce81e9f69b81b18f3faa546c7d8cd77adf50
---
 gnu/packages/sphinx.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index e280c06f2b..12dee3df27 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -803,6 +803,7 @@ (define-public python-mpl-sphinx-theme
 (define-public python-myst-parser
   (package
     (name "python-myst-parser")
+    ;; The latest version (v2.0.0) require Sphinx >= v6.
     (version "0.18.1")
     (source (origin
               (method git-fetch)        ;for tests
@@ -821,7 +822,17 @@ (define-public python-myst-parser
      (list #:test-flags #~(list "-k" (string-append
                                       "not test_basic "
                                       "and not test_gettext_html "
-                                      "and not test_fieldlist_extension"))))
+                                      "and not test_fieldlist_extension "
+                                      "and not test_syntax_extensions"))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'relax-requirements
+                 (lambda _
+                   (substitute* "pyproject.toml"
+                     ;; "mdit-py-plugins~=0.3.1"
+                     (("0.3.1") "0.4.0")
+                     ;; "markdown-it-py>=1.0.0,<3.0.0"
+                     (("3.0.0") "4.0.0")))))))
     (native-inputs
      (list python-beautifulsoup4
            python-docutils
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 28+ messages in thread

* bug#68207: [PATCH 0/5] Update python-textual to 0.46.0.
  2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
                   ` (12 preceding siblings ...)
  2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
@ 2024-02-27  9:24 ` Ricardo Wurmus
  13 siblings, 0 replies; 28+ messages in thread
From: Ricardo Wurmus @ 2024-02-27  9:24 UTC (permalink / raw)
  To: 68207-done; +Cc: Felix Gruber, Sharlatan Hellseher

I've pushed some of these patches to the python-team branch, where we
have a more recent version of pygments.

-- 
Ricardo




^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2024-02-27  9:26 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-02 15:03 [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 3/5] gnu: Add python-pygments-next Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-01-02 15:05 ` [bug#68207] [PATCH 5/5] gnu: python-textual: Update to 0.46.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 0/5] Update python-textual to 0.50.1 Felix Gruber
2024-02-12 18:04   ` [bug#68207] [PATCH v3 " Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 3/5] gnu: Add python-pygments-next Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-02-12 18:04     ` [bug#68207] [PATCH v3 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 1/5] gnu: python-markdown-it-py: Update to 3.0.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 2/5] gnu: python-mdit-py-plugins: Update to 0.4.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 3/5] gnu: Add python-pygments-next Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 4/5] gnu: python-rich: Update to 13.7.0 Felix Gruber
2024-02-12 17:55 ` [bug#68207] [PATCH v2 5/5] gnu: python-textual: Update to 0.50.1 Felix Gruber
2024-02-13 14:13 ` [bug#68207] [PATCH 0/5] Update python-textual to 0.46.0 Sharlatan Hellseher
2024-02-13 14:15 ` [bug#68207] [PATCH v4 1/8] gnu: python-markdown-it-py: Update to 3.0.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 2/8] gnu: python-mdit-py-plugins: Update to 0.4.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 3/8] gnu: Add python-pygments-next Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 4/8] gnu: python-rich: Update to 13.7.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 5/8] gnu: python-textual: Update to 0.50.1 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 6/8] gnu: python-jupytext: Update to 1.15.0 Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 7/8] gnu: python-lightning-cloud: Disable tests Sharlatan Hellseher
2024-02-13 14:15   ` [bug#68207] [PATCH v4 8/8] gnu: python-myst-parser: Relax some requirements Sharlatan Hellseher
2024-02-27  9:24 ` bug#68207: [PATCH 0/5] Update python-textual to 0.46.0 Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).