From b983da273ce0644163a72b49cc2fb98092d97e56 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Fri, 27 Sep 2024 17:08:48 -0600 Subject: [PATCH] package/python-pydantic-settings: new package Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- package/Config.in | 1 + package/python-pydantic-settings/Config.in | 9 +++++++++ .../python-pydantic-settings.hash | 5 +++++ .../python-pydantic-settings.mk | 15 +++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 package/python-pydantic-settings/Config.in create mode 100644 package/python-pydantic-settings/python-pydantic-settings.hash create mode 100644 package/python-pydantic-settings/python-pydantic-settings.mk diff --git a/package/Config.in b/package/Config.in index 57e46b0579..bc47606a36 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1200,6 +1200,7 @@ menu "External python modules" source "package/python-pydal/Config.in" source "package/python-pydantic/Config.in" source "package/python-pydantic-core/Config.in" + source "package/python-pydantic-settings/Config.in" source "package/python-pydevmem/Config.in" source "package/python-pydyf/Config.in" source "package/python-pyelftools/Config.in" diff --git a/package/python-pydantic-settings/Config.in b/package/python-pydantic-settings/Config.in new file mode 100644 index 0000000000..0e8dbc29b5 --- /dev/null +++ b/package/python-pydantic-settings/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_PYDANTIC_SETTINGS + bool "python-pydantic-settings" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core + select BR2_PACKAGE_PYTHON_DOTENV # runtime + select BR2_PACKAGE_PYTHON_PYDANTIC # runtime + help + Settings management using Pydantic. + + https://github.com/pydantic/pydantic-settings diff --git a/package/python-pydantic-settings/python-pydantic-settings.hash b/package/python-pydantic-settings/python-pydantic-settings.hash new file mode 100644 index 0000000000..1a45f34cea --- /dev/null +++ b/package/python-pydantic-settings/python-pydantic-settings.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/pydantic-settings/json +md5 38eecfeda26d332803c540fd86105509 pydantic_settings-2.5.2.tar.gz +sha256 f90b139682bee4d2065273d5185d71d37ea46cfe57e1b5ae184fc6a0b2484ca0 pydantic_settings-2.5.2.tar.gz +# Locally computed sha256 checksums +sha256 eb355a753e020346d33d83bf9769135b89fc610568ac531a01c295bcee7fd998 LICENSE diff --git a/package/python-pydantic-settings/python-pydantic-settings.mk b/package/python-pydantic-settings/python-pydantic-settings.mk new file mode 100644 index 0000000000..36add45527 --- /dev/null +++ b/package/python-pydantic-settings/python-pydantic-settings.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pydantic-settings +# +################################################################################ + +PYTHON_PYDANTIC_SETTINGS_VERSION = 2.5.2 +PYTHON_PYDANTIC_SETTINGS_SOURCE = pydantic_settings-$(PYTHON_PYDANTIC_SETTINGS_VERSION).tar.gz +PYTHON_PYDANTIC_SETTINGS_SITE = https://files.pythonhosted.org/packages/68/27/0bed9dd26b93328b60a1402febc780e7be72b42847fa8b5c94b7d0aeb6d1 +PYTHON_PYDANTIC_SETTINGS_SETUP_TYPE = pep517 +PYTHON_PYDANTIC_SETTINGS_LICENSE = MIT +PYTHON_PYDANTIC_SETTINGS_LICENSE_FILES = LICENSE +PYTHON_PYDANTIC_SETTINGS_DEPENDENCIES = host-python-hatchling + +$(eval $(python-package))