lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 4f5fa1a710696f43e9960c4e219a015605eda056
Author: Lars-Dominik Braun <[email protected]>
AuthorDate: Thu Dec 30 10:06:12 2021 +0100
gnu: python-html5lib: Enable tests.
* gnu/packages/python-web.scm (python-html5lib)[arguments]: Remove.
[origin]: Add patch enabling support for Pytest 6.
[native-inputs]: Add python-pytest and python-pytest-expect.
---
gnu/packages/python-web.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c690012fb4..549e4f8650 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1255,14 +1255,27 @@ storage.")
(uri (pypi-uri "html5lib" version))
(sha256
(base32
- "0vqlhk0hgbsfkh7ybmby93xhlx8dq6pr5blf356ka3z2c41b9rdj"))))
+ "0vqlhk0hgbsfkh7ybmby93xhlx8dq6pr5blf356ka3z2c41b9rdj"))
+ (patches
+ (list
+ ;; Adds Pytest 6 support.
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/html5lib/"
+ "html5lib-python/commit/"
+ "2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch"))
+ (file-name "python-html5lib-support-pytest6.patch")
+ (sha256
+ (base32
+ "0jg2ry0439q8n7j1mf4p2hdq54i704pq9scv4wwa2pp3cwvb6dvg")))))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-webencodings
;; Required by Calibre 5.
python-chardet))
- (arguments
- `(#:test-target "check"))
+ (native-inputs
+ (list python-pytest python-pytest-expect))
(home-page
"https://github.com/html5lib/html5lib-python")
(synopsis