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
This commit is contained in:
Sharlatan Hellseher 2025-07-16 11:56:38 +01:00
parent fde00fe8d0
commit 6ba2d68fbb
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -16919,7 +16919,7 @@ markdown_py is also provided to convert Markdown files to HTML.")
(define-public python-markdown2 (define-public python-markdown2
(package (package
(name "python-markdown2") (name "python-markdown2")
(version "2.5.2") (version "2.5.3")
(source (source
(origin (origin
(method git-fetch) ; no tests data in PyPi package (method git-fetch) ; no tests data in PyPi package
@ -16928,13 +16928,22 @@ markdown_py is also provided to convert Markdown files to HTML.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "01ll612yq7kjmj5p2zi9sf4l2wg6rm1ldcr6h0m2d9j180j7ggs8")))) (base32 "136lwfhrbgdy3ci7qrkvcm5qx5c4xv4zwbnn57yfqg37pymflima"))))
(build-system pyproject-build-system) (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 (native-inputs
(list python-pygments (list ;; python-pygments ;optinal, tests fail when added
python-pytest ;; python-wavedrom ;optinal, not packaged
python-setuptools ;; python-latex2mathml ;optinal, not packaged
python-wheel)) python-setuptools))
(home-page "https://github.com/trentm/python-markdown2") (home-page "https://github.com/trentm/python-markdown2")
(synopsis "Fast and complete Python implementation of Markdown") (synopsis "Fast and complete Python implementation of Markdown")
(description (description