mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-uvicorn: Update to 0.17.6.
* gnu/packages/python-web.scm (python-uvicorn): Update to 0.17.6. [phases]{check}: Delete extraneous add-installed-pythonpath and inputs/outputs arguments. Add the '-o' 'asyncio_mode=auto' option to pytest invocation, and skip two tests. [native-inputs]: Add python-httpx-bootstrap and python-pytest-asyncio. [propagated-inputs]: Add python-asgiref and python-dotenv.
This commit is contained in:
parent
b4c4c2f82e
commit
634a798f51
1 changed files with 21 additions and 8 deletions
|
@ -5014,7 +5014,7 @@ and fairly speedy.")
|
||||||
(define-public python-uvicorn
|
(define-public python-uvicorn
|
||||||
(package
|
(package
|
||||||
(name "python-uvicorn")
|
(name "python-uvicorn")
|
||||||
(version "0.13.2")
|
(version "0.17.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
;; PyPI tarball has no tests.
|
;; PyPI tarball has no tests.
|
||||||
|
@ -5024,20 +5024,33 @@ and fairly speedy.")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "04zgmp9z46k72ay6cz7plga6d3w3a6x41anabm7ramp7jdqf6na9"))))
|
(base32 "0npwls02nhna2lyw2nksxij16l9agf12c9f42pvxb5yrpi9l16c8"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(when tests?
|
||||||
(invoke "pytest" "-vv"))))))
|
(invoke "pytest" "-vv" "-o" "asyncio_mode=auto"
|
||||||
|
"-k"
|
||||||
|
(string-append
|
||||||
|
;; 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-pytest python-pytest-mock python-requests
|
(list python-httpx-bootstrap
|
||||||
python-trustme python-wsproto))
|
python-pytest
|
||||||
|
python-pytest-asyncio
|
||||||
|
python-pytest-mock
|
||||||
|
python-requests
|
||||||
|
python-trustme
|
||||||
|
python-wsproto))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-click
|
(list python-asgiref
|
||||||
|
python-click
|
||||||
|
python-dotenv
|
||||||
python-h11
|
python-h11
|
||||||
python-httptools
|
python-httptools
|
||||||
python-pyyaml
|
python-pyyaml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue