Subject: [PATCH v4 5/6] gnu: python-mdit-py-plugins: Update to 0.4.0.

From: Giacomo Leidi <[email-masked]>
Date: Mon, 15 Jan 2024 00:56:08 +0100

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

* gnu/packages/python-xyz.scm (python-myst-parser)[propagated-inputs]:
Use python-mdit-py-plugins-0.3.

Change-Id: I06ddbee6055b570ee2d40f3e4f0a478a4413b4fe
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++--
 gnu/packages/sphinx.scm     |  2 +-
 2 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b4b95637c7..e2013a3995 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -906,7 +906,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
@@ -915,7 +915,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
@@ -943,6 +943,23 @@ (define-public python-mdit-py-plugins
 @end enumerate")
     (license license:expat)))
 
+(define-public python-mdit-py-plugins-0.3
+  (package
+    (inherit python-mdit-py-plugins)
+    (version "0.3.1")
+    (source (origin
+              (method git-fetch)        ;for tests
+              (uri (git-reference
+                    (url "https://github.com/executablebooks/mdit-py-plugins")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name "python-mdit-py-plugins" version))
+              (sha256
+               (base32
+                "00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
+        (propagated-inputs
+         (modify-inputs (package-propagated-inputs python-mdit-py-plugins)
+           (replace "python-markdown-it-py" python-markdown-it-py-2.1)))))
+
 (define-public python-mdurl
   (package
     (name "python-mdurl")
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index 89196086f2..40a65e45b5 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -794,7 +794,7 @@ (define-public python-myst-parser
            python-linkify-it-py
            python-markdown-it-py-2.1
            python-linkify-it-py
-           python-mdit-py-plugins
+           python-mdit-py-plugins-0.3
            python-pyyaml
            python-sphinx
            python-typing-extensions))
-- 
2.41.0