[Buildroot] [PATCH v2 3/3] package/python-fastapi: new package
Marcus Hoffmann
marcus.hoffmann at othermo.de
Thu Dec 14 12:21:24 UTC 2023
Hi James,
I found another dependency problem here, I didn't spot earlier, see below.
Otherwise looks good.
Marcus
On 14.12.23 12:24, James Hilliard wrote:
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
> package/Config.in | 1 +
> package/python-fastapi/Config.in | 12 ++++++++++++
> package/python-fastapi/python-fastapi.hash | 5 +++++
> package/python-fastapi/python-fastapi.mk | 15 +++++++++++++++
> 4 files changed, 33 insertions(+)
> create mode 100644 package/python-fastapi/Config.in
> create mode 100644 package/python-fastapi/python-fastapi.hash
> create mode 100644 package/python-fastapi/python-fastapi.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 3a4bf21a2a..8a97eb2897 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1073,6 +1073,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"
> diff --git a/package/python-fastapi/Config.in b/package/python-fastapi/Config.in
> new file mode 100644
> index 0000000000..7d376d3dd7
> --- /dev/null
> +++ b/package/python-fastapi/Config.in
> @@ -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
Fastapi declares a dependency on "typing-extensions>=4.8.0" see
https://github.com/tiangolo/fastapi/blob/0.105.0/pyproject.toml#L45
Buildroot currently packages 4.7.1, so that would need to be updated
before adding fastapi.
> + help
> + FastAPI framework, high performance, easy to learn, fast to
> + code, ready for production.
> +
> + https://github.com/tiangolo/fastapi
> diff --git a/package/python-fastapi/python-fastapi.hash b/package/python-fastapi/python-fastapi.hash
> new file mode 100644
> index 0000000000..3dc1578cb7
> --- /dev/null
> +++ b/package/python-fastapi/python-fastapi.hash
> @@ -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
> diff --git a/package/python-fastapi/python-fastapi.mk b/package/python-fastapi/python-fastapi.mk
> new file mode 100644
> index 0000000000..db86bfce30
> --- /dev/null
> +++ b/package/python-fastapi/python-fastapi.mk
> @@ -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))
________________________________
othermo GmbH | Sitz der Gesellschaft: Alzenau | Amtsgericht Aschaffenburg: HRB 14783 | USt-IdNr.: DE319977978 | Geschäftsführung: Dr. Dennis Metz.
More information about the buildroot
mailing list