diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-07 12:48:31 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:18:26 +0100 |
| commit | b052a8626edb003dd9f17d2085b8a54989f1d448 (patch) | |
| tree | 3a46bd6b4e12062922e1e6746f40ad61615e73d8 /gnu/packages | |
| parent | a6d97ad9890b1e4a6f4953e9b85ef1beec3ce59a (diff) | |
gnu: python-fastapi: Update to 0.124.0.
* gnu/packages/python-web.scm (python-fastapi): Update to 0.124.0.
[arguments] <test-flags>: Rework them, do not run tests on documentation
and toturials.
<phases>: Remove 'relax-requirements.
[propagated-inputs]: Add python-annotated-doc and
python-pydantic-extra-types.
[native-inputs]: Add python-anyio, python-types-orjson, and
python-types-ujson.
Change-Id: I699102d132838e3a8ac120063c6fdb89b25db89f
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-web.scm | 76 |
1 files changed, 41 insertions, 35 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 28b9a21b237..321eb385034 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -13137,51 +13137,57 @@ Amazon S3 or any other external service.") (define-public python-fastapi (package (name "python-fastapi") - (version "0.115.6") - (source (origin - (method url-fetch) - (uri (pypi-uri "fastapi" version)) - (sha256 - (base32 - "0m36nyldk0640mbsysm446bz6rfynpjsm5lajmra8kn1vmx6zi4y")))) + (version "0.124.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fastapi" version)) + (sha256 + (base32 "1rplb37099ivd9bxyy80hljb4979zsqdjbqzk5cx5rkmmmwd2316")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 1126 passed, 12 skipped, 2 deselected #:test-flags - ;; Argument() missing 1 required positional argument: 'default' - '(list "--ignore=tests/test_fastapi_cli.py" - ;; cannot import name 'StaticPool' from 'sqlalchemy' - "--ignore-glob=tests/test_tutorial/*" - ;; FIXME: Unclear why these 8 tests fail. - "--ignore=tests/test_dependency_contextmanager.py") - #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "pyproject.toml" - (("<0.42.0") "<=0.42.0"))))))) - (propagated-inputs (list python-email-validator - python-fastapi-cli - python-httpx - python-itsdangerous - python-jinja2 - python-multipart - python-orjson - python-pydantic - python-pydantic-settings - python-pyyaml - python-starlette - python-typing-extensions - python-ujson - python-uvicorn)) + #~(list "--ignore=tests/test_tutorial/" + "--ignore=docs_src/" + ;; Coverage is required. + "--deselect=tests/test_fastapi_cli.py::test_fastapi_cli" + ;; pytest.PytestUnraisableExceptionWarning: Exception ignored + ;; in: <function MemoryObjectReceiveStream.__del__ at + ;; 0x7ffff654af20> + "-Wignore::pytest.PytestUnraisableExceptionWarning"))) (native-inputs - (list python-dirty-equals + (list python-anyio + python-dirty-equals python-flask python-inline-snapshot python-pdm-backend + ;; python-pwdlib python-pyjwt python-pytest - python-sqlalchemy)) + python-sqlalchemy + ;; python-sqlmodel + python-types-orjson + python-types-ujson)) + (propagated-inputs + (list python-starlette + python-pydantic + python-typing-extensions + python-annotated-doc + ;; [optional] + python-email-validator + python-fastapi-cli + python-httpx + python-itsdangerous + python-jinja2 + python-multipart + python-orjson + python-pydantic-extra-types + python-pydantic-settings + python-pyyaml + python-ujson + python-uvicorn)) (home-page "https://github.com/tiangolo/fastapi") (synopsis "Web framework based on type hints") (description "FastAPI provides a web API framework based on pydantic and |
