[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
239/361: gnu: python-requests-toolbelt: Update to 1.0.0.
From: |
guix-commits |
Subject: |
239/361: gnu: python-requests-toolbelt: Update to 1.0.0. |
Date: |
Thu, 21 Nov 2024 06:29:26 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit badf65a339c1affbaa3c55cce91e5eef6e63aa91
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Nov 5 15:49:46 2024 +0000
gnu: python-requests-toolbelt: Update to 1.0.0.
* gnu/packages/python-web.scm (python-requests-toolbelt): Update to 1.0.0.
[build-system]: Swap to pyproject-build-system.
[phases]{delete-problematic-tests}: Move logic to <tests-flags.
[native-inputs]: Add python-pyopenssl, python-setuptools,
python-trustme, and python-wheel.
Change-Id: Ie8a9063a53e154b421675d7ee5463861e577111b
---
gnu/packages/python-web.scm | 42 +++++++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 54544d691c..ec2543eedb 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3866,25 +3866,33 @@ portions of your testing code.")
(define-public python-requests-toolbelt
(package
(name "python-requests-toolbelt")
- (version "0.9.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "requests-toolbelt" version))
- (sha256
- (base32
- "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
- (build-system python-build-system)
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "requests-toolbelt" version))
+ (sha256
+ (base32 "1ijvip427ki177ycrblcn1mfgsq7ixzpvqqfvidjn0a7s2is10bn"))))
+ (build-system pyproject-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"))))))
+ (list
+ #:test-flags
+ ;; Requiring networking or fail due not valid certs: AttributeError:
+ ;; 'MockHTTPResponse' object has no attribute 'close'
+ #~(list "-k" (string-append "not test_dump_all"
+ " and not test_dump_response"
+ " and not
test_prepared_request_override_base"
+ " and not test_prepared_request_with_base"
+ " and not test_request_override_base"
+ " and not test_request_with_base"))))
(native-inputs
- (list python-betamax python-mock python-pytest))
+ (list python-betamax
+ python-mock
+ python-pyopenssl
+ python-pytest
+ python-setuptools
+ python-trustme
+ python-wheel))
(propagated-inputs
(list python-requests))
(synopsis "Extensions to python-requests")
- 68/361: gnu: Add python-isoduration., (continued)
- 68/361: gnu: Add python-isoduration., guix-commits, 2024/11/21
- 224/361: gnu: python-kiwisolver: Update to 1.4.6., guix-commits, 2024/11/21
- 234/361: gnu: python-jsonpickle: Adjust inputs., guix-commits, 2024/11/21
- 330/361: gnu: meson-python: Update to 0.17.1., guix-commits, 2024/11/21
- 356/361: gnu: python-apispec-webframeworks: Update to 1.2.0., guix-commits, 2024/11/21
- 358/361: gnu: python-pytest-httpbin: Update to 2.1.0., guix-commits, 2024/11/21
- 359/361: gnu: python-pytest-mpl: Update to 0.17.0., guix-commits, 2024/11/21
- 99/361: gnu: python-jupyter-server-mathjax: Update to 0.2.6., guix-commits, 2024/11/21
- 243/361: gnu: python-twine: Adjust inputs., guix-commits, 2024/11/21
- 225/361: gnu: python-array-api-compat: Update to 1.9.1., guix-commits, 2024/11/21
- 239/361: gnu: python-requests-toolbelt: Update to 1.0.0.,
guix-commits <=
- 244/361: gnu: python-notebook: Disable more failing tests., guix-commits, 2024/11/21
- 248/361: gnu: Add python-pytest-html., guix-commits, 2024/11/21
- 250/361: gnu: python-parse-type: Adjust inputs., guix-commits, 2024/11/21
- 263/361: gnu: python-urwid: Update to 2.6.16., guix-commits, 2024/11/21
- 261/361: gnu: python-pymysql: Adjust inputs., guix-commits, 2024/11/21
- 268/361: gnu: python-yt: Remove relax-requirements phase., guix-commits, 2024/11/21
- 273/361: gnu: python-scikit-fem: Update to 10.0.2., guix-commits, 2024/11/21
- 270/361: gnu: python-pytest-shutil: Update to 1.8.0., guix-commits, 2024/11/21
- 271/361: gnu: python-pytest-virtualenv: Update to 1.8.0., guix-commits, 2024/11/21
- 275/361: gnu: python-orthopy: Adjust inputs., guix-commits, 2024/11/21