gnu: python-readme-renderer: Propagate python-cmarkgfm.

* gnu/packages/python-xyz.scm (python-readme-renderer)[propagated-inputs]: Add
PYTHON-CMARKGFM.
This commit is contained in:
Marius Bakke 2022-01-11 23:33:30 +01:00
parent aa05f6a963
commit 0ec455bcc5
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -25809,11 +25809,20 @@ (define-public python-readme-renderer
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(add-after 'unpack 'loosen-cmarkgfm-dependency
(lambda _
;; Permit newer versions of cmarkgfm.
(substitute* "setup.py"
(("cmarkgfm>=0\\.5\\.0,<0\\.7\\.0")
"cmarkgfm>=0.5.0"))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv"))))))) (when tests? (invoke "pytest" "-vv")))))))
(propagated-inputs (propagated-inputs
(list python-bleach python-docutils python-pygments)) (list python-bleach python-docutils python-pygments
;; Optional dependencies.
python-cmarkgfm)) ;required by postorius
(native-inputs (native-inputs
(list python-mock python-pytest)) (list python-mock python-pytest))
(home-page "https://github.com/pypa/readme_renderer") (home-page "https://github.com/pypa/readme_renderer")