[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53179] [PATCH 2/3] gnu: python-httpx: Update to 0.19.0.
From: |
Vinicius Monego |
Subject: |
[bug#53179] [PATCH 2/3] gnu: python-httpx: Update to 0.19.0. |
Date: |
Tue, 11 Jan 2022 05:24:28 +0000 |
* gnu/packages/python-web.scm (python-httpx): Update to 0.19.0.
[arguments]: Adjust skipped tests in the custom 'check phase.
[propagated-inputs]: Add python-async-generator,
python-charset-normalizer. Remove python-chardet.
---
gnu/packages/python-web.scm | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ccce679933..c41860f4c9 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5089,17 +5089,16 @@ Some things HTTP Core does do:
(define-public python-httpx
(package
(name "python-httpx")
- (version "0.16.1")
+ (version "0.19.0")
(source
(origin
- ;; PyPI tarball does not contain tests.
- (method git-fetch)
+ (method git-fetch) ; no tests in PyPI
(uri (git-reference
(url "https://github.com/encode/httpx")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a"))))
+ (base32 "1w2wk6f07s6liyhsrq0qjj9vm2khp40kv85x91k70f1a8rwp2k3d"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -5107,16 +5106,10 @@ Some things HTTP Core does do:
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest" "-vv" "-k"
- ;; These tests try to open an outgoing connection.
+ (invoke "python" "-m" "pytest" "-k"
(string-append
- "not test_connect_timeout"
- " and not test_that_send_cause_async_client_to_be_not_"
- "closed"
- " and not test_that_async_client_caused_warning_when_"
- "being_deleted"
- " and not test_that_send_cause_client_to_be_not_closed"
- " and not test_async_proxy_close"
+ ;; These tests open outgoing connections.
+ "not test_async_proxy_close"
" and not test_sync_proxy_close"))))))))
(native-inputs
(list python-autoflake
@@ -5136,9 +5129,10 @@ Some things HTTP Core does do:
python-trustme
python-uvicorn))
(propagated-inputs
- (list python-brotli
+ (list python-async-generator
+ python-brotli
python-certifi
- python-chardet
+ python-charset-normalizer
python-httpcore
python-idna
python-rfc3986
--
2.30.2