[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: python-readme-renderer: Update to 37.3.
From: |
guix-commits |
Subject: |
04/05: gnu: python-readme-renderer: Update to 37.3. |
Date: |
Tue, 27 Feb 2024 15:56:55 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 301ff312482b5383017c1c4478329b47c16f7b85
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Feb 27 21:39:02 2024 +0100
gnu: python-readme-renderer: Update to 37.3.
* gnu/packages/python-xyz.scm (python-readme-renderer): Update to 37.3.
[build-system]: Use pyproject-build-system.
[arguments]: Delete 'loosen-cmarkgfm-dependency phase; replace custom 'check
phase with #:test-flags.
[native-inputs]: Add python-setuptools and python-wheel; remove python-mock.
Change-Id: I47cef84089384d2cf760c166fed9147863d1a415
---
gnu/packages/python-xyz.scm | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b98373865d..861d591346 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30744,38 +30744,36 @@ positioning, and keyboard input.")
(define-public python-readme-renderer
(package
(name "python-readme-renderer")
- (version "34.0")
+ (version "37.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "readme_renderer" version))
(sha256
(base32
- "1c75h9znffc2lh4j56yg23l5ifj5l8fbdq3kfigi8vbh45zx3d6z"))))
- (build-system python-build-system)
+ "0wrja6d5rx85lggl3a3igxnh8amjbizj43q9dxjmac67vy332rfd"))))
+ (build-system pyproject-build-system)
(arguments
- '(#: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
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; The GFM tests fail due to slight differences in the
- ;; generated vs expected HTML due to using a more
- ;; recent bleach version (see:
- ;; https://github.com/pypa/readme_renderer/issues/234).
- (invoke "pytest" "-vv" "-k" "not GFM")))))))
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-append
+ ;; These tests fail due to slight differences in the generated
+ ;; vs expected HTML, e.g. because of difference in whitespace or
+ ;; line breaks. (See also
+ ;; https://github.com/pypa/readme_renderer/issues/234).
+ "not test_md_fixtures[test_CommonMark_008.md]"
+ " and not test_rst_fixtures[test_rst_008.rst]"
+ " and not GFM"))))
(propagated-inputs
(list python-bleach python-docutils python-pygments
;; Optional dependencies.
python-cmarkgfm)) ;required by postorius
(native-inputs
- (list python-mock python-pytest))
+ (list python-pytest
+ python-setuptools
+ python-wheel))
(home-page "https://github.com/pypa/readme_renderer")
(synopsis "Render README files in Warehouse")
(description