diff options
author | Felix Gruber <felgru@posteo.net> | 2022-04-03 18:36:39 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-05 20:41:40 +0200 |
commit | c9cca908fa79c51ea3bc8ed2aa6c11d1b1868765 (patch) | |
tree | a885328b85dd9160432bdcd5aef1c50488d53381 /gnu/packages/python-web.scm | |
parent | 27a6e8501f0299d438916c3d11d37f18ecb4f4eb (diff) | |
download | guix-c9cca908fa79c51ea3bc8ed2aa6c11d1b1868765.tar.gz guix-c9cca908fa79c51ea3bc8ed2aa6c11d1b1868765.zip |
gnu: python-w3lib: Fix build.
* gnu/packages/python-web.scm (python-w3lib): Fix build.
[source]: Add python-w3lib-fix-test-failure.patch.
[arguments]: Use pytest in the 'check phase.
[native-inputs]: Add python-pytest.
* gnu/packages/patches/python-w3lib-fix-test-failure.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r-- | gnu/packages/python-web.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 41e0d1c3d6..f77d163833 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -49,6 +49,7 @@ ;;; Copyright © 2021 Alice Brenon <alice.brenon@ens-lyon.fr> ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com> ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> +;;; Copyright © 2022 Felix Gruber <felgru@posteo.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -6188,12 +6189,20 @@ communicate with Microsoft Azure Storage services.") (origin (method url-fetch) (uri (pypi-uri "w3lib" version)) + (patches (search-patches "python-w3lib-fix-test-failure.patch")) (sha256 (base32 "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) (native-inputs - (list python-six)) + (list python-pytest python-six)) (home-page "https://github.com/scrapy/w3lib") (synopsis "Python library of web-related functions") (description |