gnu: python-uvicorn: Update to 0.23.2.

* gnu/packages/python-web.scm (python-uvicorn): Update to 0.23.2.
[build-system]: Switch to PYPROJECT-BUILD-SYSTEM.
[arguments]: Adjust accordingly.
[native-inputs]: Add PYTHON-A2WSGI and PYTHON-HATCHLING.
[propagated-inputs]: Remove PYTHON-ASGIREF.
This commit is contained in:
Marius Bakke 2023-09-11 21:50:59 +08:00
parent be3c0cf68e
commit 0e25cba87d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -5784,7 +5784,7 @@ (define-public python-httptools
(define-public python-uvicorn (define-public python-uvicorn
(package (package
(name "python-uvicorn") (name "python-uvicorn")
(version "0.17.6") (version "0.23.2")
(source (source
(origin (origin
;; PyPI tarball has no tests. ;; PyPI tarball has no tests.
@ -5794,23 +5794,21 @@ (define-public python-uvicorn
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0npwls02nhna2lyw2nksxij16l9agf12c9f42pvxb5yrpi9l16c8")))) (base32 "1qa4cwifss9cnasfr0ffn76rvh7wcfjkl6nw99yz43rjmdpj3h7p"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list #:test-flags
(modify-phases %standard-phases #~(list "-o" "asyncio_mode=auto"
(replace 'check "-k"
(lambda* (#:key tests? #:allow-other-keys) (string-join
(when tests? ;; These error or fail due to networking.
(invoke "pytest" "-vv" "-o" "asyncio_mode=auto" '("not test_keepalive"
"-k" "not test_bind_unix_socket_works_with_reload_or_workers")
(string-append " and "))))
;; These error or fail due to networking.
"not test_keepalive "
"and not test_bind_unix_socket_works_with_"
"reload_or_workers "))))))))
(native-inputs (native-inputs
(list python-httpx-bootstrap (list python-a2wsgi
python-hatchling
python-httpx-bootstrap
python-pytest python-pytest
python-pytest-asyncio python-pytest-asyncio
python-pytest-mock python-pytest-mock
@ -5818,8 +5816,7 @@ (define-public python-uvicorn
python-trustme python-trustme
python-wsproto)) python-wsproto))
(propagated-inputs (propagated-inputs
(list python-asgiref (list python-click
python-click
python-dotenv python-dotenv
python-h11 python-h11
python-httptools python-httptools