~ruther/guix-local

50caf2b5e3a458b34d4a7221670506b4547e2da8 — Sharlatan Hellseher 8 months ago f7f6e29
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
1 files changed, 17 insertions(+), 8 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -8
@@ 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