From 7593c109ddc69a4131338f828c2bb5abe0be0740 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sun, 22 Feb 2026 20:43:08 +0100 Subject: gnu: python-fastapi: Update to 0.131.0. * gnu/packages/python-web.scm (python-fastapi): Update to 0.131.0. [native-inputs]: Remove python-sqlalchemy; add python-sqlalchemy-2. [arguments]<#:test-backend>: Use 'custom. <#:test-flags>: Update tests. [home-page]: Update with redirect. --- gnu/packages/python-web.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 7fcf8ee141..787754c1c5 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -13755,24 +13755,25 @@ Amazon S3 or any other external service.") (define-public python-fastapi (package (name "python-fastapi") - (version "0.128.0") + (version "0.131.0") (source (origin (method url-fetch) (uri (pypi-uri "fastapi" version)) (sha256 - (base32 "0nk4ybvzv3bcgv5plbg3infykp19p1wryhpy1zk6n2pirvhpkh8w")))) + (base32 "1zs80pz8p04akxxmyfihqgii1wjhhad6qx1cjfd8kqmya9g1acb5")))) (build-system pyproject-build-system) (arguments (list ;; tests: 1126 passed, 12 skipped, 2 deselected + #:test-backend #~'custom #:test-flags #~(list - ;; cannot import name 'StaticPool' from 'sqlalchemy' + ;; Cannot import 'scripts' with just 'pytest'. + "-m" "pytest" + ;; Needs strawberry and sqlmodel. "--ignore=tests/test_tutorial/" - ;; Some snapshots have incorrect values. - "--deselect=tests/test_schema_compat_pydantic_v2.py::test_openapi_schema" - ;; Argument() missing 1 required positional argument: 'default' + ;; Fails due to failure to capture stdout. "--ignore=tests/test_fastapi_cli.py"))) (native-inputs (list python-anyio @@ -13783,7 +13784,7 @@ Amazon S3 or any other external service.") ;; python-pwdlib python-pyjwt python-pytest - python-sqlalchemy + python-sqlalchemy-2 ;; python-sqlmodel python-types-orjson python-types-ujson)) @@ -13805,7 +13806,7 @@ Amazon S3 or any other external service.") python-pyyaml python-ujson python-uvicorn)) - (home-page "https://github.com/tiangolo/fastapi") + (home-page "https://github.com/fastapi/fastapi") (synopsis "Web framework based on type hints") (description "FastAPI provides a web API framework based on pydantic and starlette.") -- cgit v1.3