package/python-fastapi: new package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Marcus Hoffmann <marcus.hoffmann@othermo.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard 2023-12-14 09:54:16 -07:00 committed by Thomas Petazzoni
parent cfb0987517
commit da1f15dbca
4 changed files with 33 additions and 0 deletions

View File

@ -1082,6 +1082,7 @@ menu "External python modules"
source "package/python-evdev/Config.in"
source "package/python-executing/Config.in"
source "package/python-falcon/Config.in"
source "package/python-fastapi/Config.in"
source "package/python-filelock/Config.in"
source "package/python-fire/Config.in"
source "package/python-flask/Config.in"

View File

@ -0,0 +1,12 @@
config BR2_PACKAGE_PYTHON_FASTAPI
bool "python-fastapi"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core
select BR2_PACKAGE_PYTHON_ANYIO # runtime
select BR2_PACKAGE_PYTHON_PYDANTIC # runtime
select BR2_PACKAGE_PYTHON_STARLETTE # runtime
select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
help
FastAPI framework, high performance, easy to learn, fast to
code, ready for production.
https://github.com/tiangolo/fastapi

View File

@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/fastapi/json
md5 06bfa7c610fc9e81d05b0319eb70cae7 fastapi-0.105.0.tar.gz
sha256 4d12838819aa52af244580675825e750ad67c9df4614f557a769606af902cf22 fastapi-0.105.0.tar.gz
# Locally computed sha256 checksums
sha256 4ec89ffc81485b97fec584b2d4a961032eeffe834453894fd9c1274906cc744e LICENSE

View File

@ -0,0 +1,15 @@
################################################################################
#
# python-fastapi
#
################################################################################
PYTHON_FASTAPI_VERSION = 0.105.0
PYTHON_FASTAPI_SOURCE = fastapi-$(PYTHON_FASTAPI_VERSION).tar.gz
PYTHON_FASTAPI_SITE = https://files.pythonhosted.org/packages/77/bb/5941e6e2ce3020f64b539a49d39f49be05de17d0c47fea95012589f812a5
PYTHON_FASTAPI_SETUP_TYPE = pep517
PYTHON_FASTAPI_LICENSE = MIT
PYTHON_FASTAPI_LICENSE_FILES = LICENSE
PYTHON_FASTAPI_DEPENDENCIES = host-python-hatchling
$(eval $(python-package))