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

commit df2ef78f73a6309cc160a5a156084e934698e116
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Wed Jul 16 11:56:38 2025 +0100

    gnu: python-markdown2: Update to 2.5.3.
    
    * gnu/packages/python-xyz.scm (python-markdown2): Update to 2.5.3.
      [arguments] <test-backend>: Use 'custom.
      <test-flags>: Provides options as seen in project's Makefile.
      [native-inputs]: Remove python-pygments, python-pytest, and
      python-wheel.
    
    Change-Id: I502c32abd249a1b3b8532e01621dc36ce7b74734
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1f22ed6b4b..0c90696609 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16866,22 +16866,31 @@ markdown_py is also provided to convert Markdown 
files to HTML.")
 (define-public python-markdown2
   (package
     (name "python-markdown2")
-    (version "2.5.2")
+    (version "2.5.3")
     (source
      (origin
        (method git-fetch) ; no tests data in PyPi package
        (uri (git-reference
-             (url "https://github.com/trentm/python-markdown2";)
-             (commit version)))
+              (url "https://github.com/trentm/python-markdown2";)
+              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "01ll612yq7kjmj5p2zi9sf4l2wg6rm1ldcr6h0m2d9j180j7ggs8"))))
+        (base32 "136lwfhrbgdy3ci7qrkvcm5qx5c4xv4zwbnn57yfqg37pymflima"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-backend #~'custom
+      #:test-flags #~(list "test.py" "--" "-knownfailure")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              (chdir "test"))))))
     (native-inputs
-     (list python-pygments
-           python-pytest
-           python-setuptools
-           python-wheel))
+     (list ;; python-pygments      ;optinal, tests fail when added
+           ;; python-wavedrom      ;optinal, not packaged
+           ;; python-latex2mathml  ;optinal, not packaged
+           python-setuptools))
     (home-page "https://github.com/trentm/python-markdown2";)
     (synopsis "Fast and complete Python implementation of Markdown")
     (description

Reply via email to