dev-python/fastapi - 0.135.3 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/fastapi-0.135.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/fastapi-0.135.3

Or alternatively:

emerge --autounmask-write -a =dev-python/fastapi-0.135.3

Package Information

Description:
FastAPI framework, high performance, easy to learn, ready for production
Homepage:
https://fastapi.tiangolo.com/ https://pypi.org/project/fastapi/ https://github.com/fastapi/fastapi
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.135.3 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=pdm-backend
PYTHON_COMPAT=( python3_{11..14} )

inherit distutils-r1 optfeature

DESCRIPTION="FastAPI framework, high performance, easy to learn, ready for production"
HOMEPAGE="
	https://fastapi.tiangolo.com/
	https://pypi.org/project/fastapi/
	https://github.com/fastapi/fastapi
"

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/fastapi/fastapi.git"
else
	inherit pypi
	KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"

RDEPEND="
	>=dev-python/annotated-doc-0.0.2[${PYTHON_USEDEP}]
	>=dev-python/pydantic-2.9.0[${PYTHON_USEDEP}]
	>=dev-python/starlette-0.46.0[${PYTHON_USEDEP}]
	>=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
	>=dev-python/typing-inspection-0.4.2[${PYTHON_USEDEP}]
"
# Tests need a sprawl of dev-python/* deps (pwdlib, sqlmodel,
# strawberry-graphql, pydantic-extra-types) that live in ::guru only.
# Forking them all just to run fastapi's test suite is overkill for our
# overlay's needs — RESTRICT them and rely on upstream CI.
RESTRICT="test"

python_prepare_all() {
	# Dont install fastapi executable as fastapi-cli is supposed to handle it
	sed -i -e '/\[project.scripts\]/,/^$/d' pyproject.toml || die

	distutils-r1_python_prepare_all
}

pkg_postinst() {
	optfeature "commandline interface" dev-python/fastapi-cli
	optfeature "test client" dev-python/httpx
	optfeature "templates" dev-python/jinja2
	optfeature "forms and file uploads" dev-python/python-multipart
	optfeature "validate emails" dev-python/email-validator
	optfeature "uvicorn with uvloop" dev-python/uvicorn
	optfeature "settings management" dev-python/pydantic-settings
	optfeature "extra Pydantic data types" dev-python/pydantic-extra-types
	optfeature_header "Alternative JSON responses"
	optfeature "ORJSONResponse" dev-python/orjson
	optfeature "UJSONResponse" dev-python/ujson
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/annotated-doc-0.0.2[]
	>=dev-python/pydantic-2.9.0[]
	>=dev-python/starlette-0.46.0[]
	>=dev-python/typing-extensions-4.8.0[]
	>=dev-python/typing-inspection-0.4.2[]