[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/145: gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests.
From: |
guix-commits |
Subject: |
81/145: gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests. |
Date: |
Mon, 10 Jan 2022 11:44:12 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 550d9fd6efd3a4a18d3112600fa0c21d4d5b2f30
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Dec 21 15:38:35 2021 -0500
gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests.
* gnu/packages/python-web.scm (pyhton-requests-toolbelt): Update to 0.9.1.
[phases]{delete-problematic-tests}: New phase.
(python-requests-toolbelt-0.9.1): Delete variable.
(python2-requests-toolbelt): Likewise.
(python-cloudscraper): Adjust accordingly.
---
gnu/packages/python-web.scm | 36 ++++++++++++++----------------------
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 63b6d94449..b51caa206a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -687,7 +687,7 @@ other HTTP libraries.")
'(#:tests? #f))
(propagated-inputs
(list python-colorama python-pygments python-requests
- python-requests-toolbelt-0.9.1))
+ python-requests-toolbelt))
(home-page "https://httpie.io")
(synopsis "cURL-like tool for humans")
(description
@@ -2597,14 +2597,23 @@ portions of your testing code.")
(define-public python-requests-toolbelt
(package
(name "python-requests-toolbelt")
- (version "0.8.0")
+ (version "0.9.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "requests-toolbelt" version))
(sha256
(base32
- "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
+ "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'delete-problematic-tests
+ (lambda _
+ ;; Fails because of expired certificate.
+ (delete-file "tests/test_x509_adapter.py")
+ ;; Fails due to networking (socket.gaierror: [Errno -2]
+ ;; Name or service not known).
+ (delete-file "tests/test_multipart_encoder.py"))))))
(native-inputs
(list python-betamax python-mock python-pytest))
(propagated-inputs
@@ -2612,26 +2621,9 @@ portions of your testing code.")
(synopsis "Extensions to python-requests")
(description "This is a toolbelt of useful classes and functions to be used
with python-requests.")
- (home-page "https://github.com/sigmavirus24/requests-toolbelt")
+ (home-page "https://github.com/requests/toolbelt/")
(license license:asl2.0)))
-(define-public python2-requests-toolbelt
- (package-with-python2 python-requests-toolbelt))
-
-(define-public python-requests-toolbelt-0.9.1
- (package
- (inherit python-requests-toolbelt)
- (version "0.9.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "requests-toolbelt" version))
- (sha256
- (base32
- "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
- (arguments
- `(;; FIXME: Some tests require network access.
- #:tests? #f))))
-
(define-public python-requests-ftp
(package
(name "python-requests-ftp")
@@ -5864,7 +5856,7 @@ Encoding for HTTP.")
(list python-js2py
python-polling2
python-requests
- python-requests-toolbelt-0.9.1
+ python-requests-toolbelt
python-responses
python-pyparsing-2.4.7))
(native-inputs
- 43/145: gnu: epiphany: Update to 41.2., (continued)
- 43/145: gnu: epiphany: Update to 41.2., guix-commits, 2022/01/10
- 40/145: gnu: gnome-backgrounds: Update to 41.0., guix-commits, 2022/01/10
- 44/145: gnu: wayland: Add python to native inputs., guix-commits, 2022/01/10
- 45/145: gnu: wayland-protocols: Add python to native inputs., guix-commits, 2022/01/10
- 49/145: gnu: pangomm: Add python to native inputs., guix-commits, 2022/01/10
- 59/145: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 52/145: gnu: gtkmm: Add python to native inputs., guix-commits, 2022/01/10
- 55/145: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10
- 74/145: gnu: python-fonttools: Update to 4.28.5., guix-commits, 2022/01/10
- 56/145: gnu: gjs: Build with meson-0.59 to avoid 'install_dir' error., guix-commits, 2022/01/10
- 81/145: gnu: python-requests-toolbelt: Update to 0.9.1 and enable tests.,
guix-commits <=
- 93/145: gnu: python-biom-format: Remove obsolete phase., guix-commits, 2022/01/10
- 75/145: gnu: python-matplotlib: Update to 3.5.1 and run tests in parallel., guix-commits, 2022/01/10
- 85/145: gnu: samtools: Update to 1.14., guix-commits, 2022/01/10
- 125/145: gnu: gnome-screenshot: Add python to native inputs., guix-commits, 2022/01/10
- 73/145: gnu: Add python-zopfli., guix-commits, 2022/01/10
- 100/145: gnu: go-github-com-gdamore-tcell: Remove obsolete phase., guix-commits, 2022/01/10
- 47/145: gnu: atkmm: Add python to native inputs., guix-commits, 2022/01/10
- 58/145: gnu: glade3: Add python to native inputs., guix-commits, 2022/01/10
- 105/145: gnu: lmms: Remove obsolete phase., guix-commits, 2022/01/10
- 68/145: gnu: python-pylint: Update to 2.12.2., guix-commits, 2022/01/10