From 50caf2b5e3a458b34d4a7221670506b4547e2da8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 16 Jul 2025 11:56:38 +0100 Subject: [PATCH] gnu: python-markdown2: Update to 2.5.3. * gnu/packages/python-xyz.scm (python-markdown2): Update to 2.5.3. [arguments] : Use 'custom. : 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 585912f8822b26f3b8e39a95de2ad2738f5cc417..d306d6d687fb746470c505e2f4bede6bf29c58cc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16895,22 +16895,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