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,22 +16919,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