summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-06-23 18:56:40 +0200
committerMarius Bakke <marius@gnu.org>2022-06-23 19:55:42 +0200
commit647ec2ae78c188e90cea968f99deed01bd024ea5 (patch)
treee3f4e08586ac4370a238a15daca4d13f75a93d05 /gnu/packages
parent9acd1a150f083a8f131d9399bb3e45c358c6a39c (diff)
downloadguix-647ec2ae78c188e90cea968f99deed01bd024ea5.tar.gz
gnu: python-requests: Update to 2.28.0.
* gnu/packages/python-web.scm (python-requests): Update to 2.28.0.
[arguments]: Loosen charset-normalizer requirement.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-web.scm15
1 files changed, 12 insertions, 3 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6c121907e6..04378cd8f3 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2775,13 +2775,13 @@ APIs.")
 (define-public python-requests
   (package
     (name "python-requests")
-    (version "2.27.1")
+    (version "2.28.0")
     (source (origin
              (method url-fetch)
              (uri (pypi-uri "requests" version))
              (sha256
               (base32
-               "0qcsbi919d689xqlgyhw9zkppp1fs6k09wwffa3ri6d8smpwbmv8"))))
+               "0szcvcc1kj7pn7bq7r5jjj0zrllc0vx5vbqyimfqf9dxgqx74s6m"))))
     (build-system python-build-system)
     (propagated-inputs
      (list python-certifi
@@ -2790,7 +2790,16 @@ APIs.")
            python-urllib3))
     (arguments
      ;; FIXME: Some tests require network access.
-     '(#:tests? #f))
+     (list #:tests? #f
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'loosen-requirement
+                 (lambda _
+                   ;; Don't depend on exactly 2.0.0.
+                   ;; https://github.com/psf/requests/pull/6169
+                   (substitute* '("setup.py" "setup.cfg")
+                     (("charset_normalizer~=2\\.0\\.0")
+                      "charset_normalizer~=2.0")))))))
     (home-page "http://python-requests.org/")
     (synopsis "Python HTTP library")
     (description