gnu: python-httpcore: Update to 0.17.0.

* gnu/packages/python-web.scm (python-httpcore): Update to 0.17.0.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom check phase; specify #:test-flags; disable broken
tests.
This commit is contained in:
Ricardo Wurmus 2023-04-27 06:36:19 +02:00
parent f95498c92e
commit 3b19fc1801
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -5838,7 +5838,7 @@ (define-public python-vf-1
(define-public python-httpcore (define-public python-httpcore
(package (package
(name "python-httpcore") (name "python-httpcore")
(version "0.15.0") (version "0.17.0")
(source (source
(origin (origin
;; PyPI tarball does not contain tests. ;; PyPI tarball does not contain tests.
@ -5848,16 +5848,28 @@ (define-public python-httpcore
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0skj8f85l52gl6x449wzaixcwsyayvn59iwn0df4b7ixlz6xhp8l")))) (base32 "0qf2w6sgn51jd41a4k230jincrk6rchgc0k1bclxhyyzv44q4q8c"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check '(list "--override-ini=asyncio_mode=auto"
(lambda* (#:key tests? #:allow-other-keys) "-k"
(when tests? (string-join '("not test_ssl_request"
(invoke "pytest" "-vv" "tests" ;; PytestUnraisableExceptionWarning
"--override-ini=asyncio_mode=auto"))))))) "test_authenticated_socks5_request"
"test_socks5_request"
"test_socks5_request_connect_failed"
"test_socks5_request_failed_to_provide_auth"
"test_socks5_request_incorrect_auth"
;; marked with @pytest.mark.asyncio but it is not an async function
"test_connection_pool_concurrency"
"test_connection_pool_concurrency_same_domain_keepalive"
"test_response_async_read"
"test_response_async_streaming"
;; SSL connection has been closed
"test_extra_info")
" and not "))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-asyncio python-pytest-asyncio