gnu: python-fastapi: Update to 0.115.6.

* gnu/packages/python-web.scm (python-fastapi): Update to 0.115.6.
[arguments]: Update list of disabled tests.
[propagated-inputs]: Add python-fastapi-cli, python-pydantic-2,
and python-pydantic-settings; remove python-pydantic.
[native-inputs]: Delete python-databases, python-isort, python-jose,
python-mypy, python-hatchling, python-passlib, python-peewee,
python-types-orjson, and python-types-ujson.

Change-Id: Id2ea9e1376dbfb654a62e6b8218c49adeda68014
This commit is contained in:
Ricardo Wurmus 2025-01-03 23:27:13 +01:00
parent aeef83b53d
commit c8d727e10d
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -9849,43 +9849,48 @@ and FastAPI.")
(define-public python-fastapi (define-public python-fastapi
(package (package
(name "python-fastapi") (name "python-fastapi")
(version "0.92.0") (version "0.115.6")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "fastapi" version)) (uri (pypi-uri "fastapi" version))
(sha256 (sha256
(base32 (base32
"1pm4p5i9h732f0qag85yd9ngjz8x9bhs3fyk2j861cn8s9dhyfh2")))) "0m36nyldk0640mbsysm446bz6rfynpjsm5lajmra8kn1vmx6zi4y"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags #:test-flags
;; The test_create_user tests fail with a 400 error: "Email already registered". ;; Argument() missing 1 required positional argument: 'default'
'(list "--ignore=docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py" '(list "--ignore=tests/test_fastapi_cli.py"
"--ignore=docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py"))) ;; cannot import name 'StaticPool' from 'sqlalchemy'
"--ignore-glob=tests/test_tutorial/*"
;; FIXME: we have python-multipart, but these tests fail to find
;; it.
"--ignore=tests/test_multipart_installation.py"
;; FIXME: Unclear why these 8 tests fail.
"--ignore=tests/test_dependency_contextmanager.py")))
(propagated-inputs (list python-email-validator (propagated-inputs (list python-email-validator
python-fastapi-cli
python-httpx python-httpx
python-itsdangerous python-itsdangerous
python-jinja2 python-jinja2
python-multipart python-multipart
python-orjson python-orjson
python-starlette python-pydantic-2
python-pydantic python-pydantic-settings
python-pyyaml python-pyyaml
python-uvicorn python-starlette
python-ujson)) python-typing-extensions
(native-inputs (list python-databases python-ujson
python-uvicorn))
(native-inputs
(list python-dirty-equals
python-flask python-flask
python-hatchling python-inline-snapshot
python-isort python-pdm-backend
python-jose python-pyjwt
python-mypy
python-passlib
python-peewee
python-pytest python-pytest
python-sqlalchemy python-sqlalchemy))
python-types-orjson
python-types-ujson))
(home-page "https://github.com/tiangolo/fastapi") (home-page "https://github.com/tiangolo/fastapi")
(synopsis "Web framework based on type hints") (synopsis "Web framework based on type hints")
(description "FastAPI provides a web API framework based on pydantic and (description "FastAPI provides a web API framework based on pydantic and