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
This commit is contained in:
Sharlatan Hellseher 2024-11-05 15:49:46 +00:00
parent 6d13c785fc
commit c7f304253f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3876,25 +3876,33 @@ portions of your testing code.")
(define-public python-requests-toolbelt (define-public python-requests-toolbelt
(package (package
(name "python-requests-toolbelt") (name "python-requests-toolbelt")
(version "0.9.1") (version "1.0.0")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "requests-toolbelt" version)) (method url-fetch)
(sha256 (uri (pypi-uri "requests-toolbelt" version))
(base32 (sha256
"1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n")))) (base32 "1ijvip427ki177ycrblcn1mfgsq7ixzpvqqfvidjn0a7s2is10bn"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases (list
(add-after 'unpack 'delete-problematic-tests #:test-flags
(lambda _ ;; Requiring networking or fail due not valid certs: AttributeError:
;; Fails because of expired certificate. ;; 'MockHTTPResponse' object has no attribute 'close'
(delete-file "tests/test_x509_adapter.py") #~(list "-k" (string-append "not test_dump_all"
;; Fails due to networking (socket.gaierror: [Errno -2] " and not test_dump_response"
;; Name or service not known). " and not test_prepared_request_override_base"
(delete-file "tests/test_multipart_encoder.py")))))) " and not test_prepared_request_with_base"
" and not test_request_override_base"
" and not test_request_with_base"))))
(native-inputs (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 (propagated-inputs
(list python-requests)) (list python-requests))
(synopsis "Extensions to python-requests") (synopsis "Extensions to python-requests")