gnu: python-httpx: Update to 0.24.0.
* gnu/packages/python-web.scm (python-httpx): Update to 0.24.0. [build-system]: Use pyproject-build-system. [arguments]: Remove custom check phase in favor of specifying #:test-flags. [native-inputs]: Add python-hatchling and python-hatch-fancy-pypi-readme. (python-httpx-bootstrap)[native-inputs]: Add python-hatchling and python-hatch-fancy-pypi-readme.master
parent
3b19fc1801
commit
e5619147d4
|
@ -5916,7 +5916,7 @@ Some things HTTP Core does do:
|
||||||
(define-public python-httpx
|
(define-public python-httpx
|
||||||
(package
|
(package
|
||||||
(name "python-httpx")
|
(name "python-httpx")
|
||||||
(version "0.23.0")
|
(version "0.24.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
;; PyPI tarball does not contain tests.
|
;; PyPI tarball does not contain tests.
|
||||||
|
@ -5926,32 +5926,29 @@ Some things HTTP Core does do:
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0bihm7ylq9ajxz8qyba0xp9qkwm7n06hk01ywkq2vpz65ix5hpdk"))))
|
(base32 "1b35ywrbdk8kcsfvr39gvfp7bvx00scqfigi8b19a1czhacsmc3q"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(replace 'check
|
'(list "-vv" "-o" "asyncio_mode=auto"
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-vv" "-o" "asyncio_mode=auto"
|
|
||||||
"-k"
|
"-k"
|
||||||
;; These tests try to open an outgoing connection.
|
;; These tests try to open an outgoing connection.
|
||||||
(string-append
|
(string-append
|
||||||
"not test_connect_timeout"
|
"not test_connect_timeout"
|
||||||
" and not test_that_send_cause_async_client_to_be_not_"
|
" and not test_that_send_cause_async_client_to_be_not_closed"
|
||||||
"closed"
|
" and not test_that_async_client_caused_warning_when_being_deleted"
|
||||||
" 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_that_send_cause_client_to_be_not_closed"
|
||||||
" and not test_async_proxy_close"
|
" and not test_async_proxy_close"
|
||||||
" and not test_sync_proxy_close"
|
" and not test_sync_proxy_close"
|
||||||
;; This test is apparently incompatible with
|
;; This test is apparently incompatible with
|
||||||
;; python-click 8, fails with " AttributeError:
|
;; python-click 8, fails with " AttributeError:
|
||||||
;; 'function' object has no attribute 'name'".
|
;; 'function' object has no attribute 'name'".
|
||||||
" and not test_main"))))))))
|
" and not test_main"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cryptography
|
(list python-cryptography
|
||||||
|
python-hatchling
|
||||||
|
python-hatch-fancy-pypi-readme
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-asyncio
|
python-pytest-asyncio
|
||||||
python-pytest-trio
|
python-pytest-trio
|
||||||
|
@ -6013,7 +6010,9 @@ Plus all the standard features of requests:
|
||||||
(package/inherit python-httpx
|
(package/inherit python-httpx
|
||||||
(name "python-httpx-bootstrap")
|
(name "python-httpx-bootstrap")
|
||||||
(arguments (list #:tests? #f))
|
(arguments (list #:tests? #f))
|
||||||
(native-inputs '())
|
(native-inputs
|
||||||
|
(list python-hatchling
|
||||||
|
python-hatch-fancy-pypi-readme))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(modify-inputs (package-propagated-inputs python-httpx)
|
(modify-inputs (package-propagated-inputs python-httpx)
|
||||||
(replace "python-httpcore" python-httpcore-bootstrap))))))
|
(replace "python-httpcore" python-httpcore-bootstrap))))))
|
||||||
|
|
Reference in New Issue