summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-05 10:18:29 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:52 +0100
commit707c3fc21256249cf81141130f4c39d025220d22 (patch)
tree55e66e1bc4c2e7f75111b5521227eebfd1330f45 /gnu/packages/python-web.scm
parent4fd060a0b2965160f6d27123543d4344c7316e18 (diff)
gnu: python-httpx: Rearange inputs, fix tests.
* gnu/packages/python-web.scm (python-httpx): Refresh test flags for skipped tests. [arguments]: Apply G-expressions. <test-flags>: Remove not existing tests from the ignore list. [propagated-inputs]: Remove python-charset-normalizer, python-chardet, and python-rfc3986; add python-anyio, python-h2, python-socksio, and python-zstandard. [native-inputs]: Remove python-trio-typing, python-wheel, and python-zstandard; add python-chardet. Change-Id: I62f668ee3659220938b268ac17fdf594a95d076c
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm53
1 files changed, 27 insertions, 26 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 3ec90626b30..f29324ee514 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8554,52 +8554,53 @@ Some things HTTP Core does do:
;; PyPI tarball does not contain tests.
(method git-fetch)
(uri (git-reference
- (url "https://github.com/encode/httpx")
- (commit version)))
+ (url "https://github.com/encode/httpx")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "00d6rb21xwazwb0sj68zhra0qxxcwkd0vv7bg3k1jg94dmk2w7xl"))))
(build-system pyproject-build-system)
(arguments
(list
+ ;; 1401 passed, 1 skipped, 5 deselected
#:test-flags
- '(list "-vv" "-o" "asyncio_mode=auto"
- "-k"
- ;; These tests try to open an outgoing connection.
- (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"
- " and not test_sync_proxy_close"
- ;; This test is apparently incompatible with
- ;; python-click 8, fails with " AttributeError:
- ;; 'function' object has no attribute 'name'".
- " and not test_main"))))
+ #~(list "-o" "asyncio_mode=auto"
+ ;; CLI tests are broken.
+ "--ignore=tests/test_main.py"
+ "-k" (string-join
+ ;; These tests try to open an outgoing connection.
+ (list "not test_async_proxy_close"
+ "test_sync_proxy_clos"
+ "test_write_timeout")
+ " and not "))))
(native-inputs
(list nss-certs-for-test
+ python-chardet
python-cryptography
- python-hatchling
python-hatch-fancy-pypi-readme
+ python-hatchling
python-pytest
python-pytest-asyncio
python-pytest-trio
+ python-setuptools
python-trio
- python-trio-typing
python-trustme
- python-uvicorn
- python-setuptools
- python-wheel
- python-zstandard))
+ python-uvicorn))
(propagated-inputs
- (list python-charset-normalizer
- python-brotli
+ (list python-anyio
python-certifi
- python-chardet
python-httpcore
python-idna
- python-rfc3986
+ ;; [brotli]
+ python-brotli
+ ;; [http2]
+ python-h2
+ ;; [socks]
+ python-socksio
+ ;; [zstd]
+ python-zstandard
+ ;; For trio, see:
+ ;; <https://github.com/python-trio/trio/issues/2802>.
python-sniffio))
(home-page "https://www.python-httpx.org/")
(synopsis "HTTP client for Python")