python-pydantic-core: add version 2.16.3
Pydantic v2 depends on python-pydantic-core, and pydantic-core contains rust code, so installing it directly from pip is not trivial in openwrt device. Signed-off-by: Ilkka Ollakka <ilkka.ollakka@cloudersolutions.com>
This commit is contained in:
parent
febdc2574f
commit
7e56127fae
|
@ -0,0 +1,44 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2024, Clouder Oy
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=python-pydantic-core
|
||||||
|
PKG_VERSION:=2.16.3
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYPI_NAME:=pydantic_core
|
||||||
|
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
PKG_MAINTAINER:=Ilkka Ollakka <ilkka.ollakka@cloudersolutions.com>
|
||||||
|
PKG_HASH:=1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=python-maturin/host
|
||||||
|
|
||||||
|
include ../pypi.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
|
define Package/python3-pydantic-core
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
SUBMENU:=Python
|
||||||
|
TITLE:=Pydantic-core
|
||||||
|
URL:=https://github.com/pydantic/pydantic-core
|
||||||
|
DEPENDS:= \
|
||||||
|
+python3-light \
|
||||||
|
$(RUST_ARCH_DEPENDS)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-pydantic-core/description
|
||||||
|
This package provides the core functionality for pydantic validation and serialization.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-pydantic-core))
|
||||||
|
$(eval $(call BuildPackage,python3-pydantic-core))
|
||||||
|
$(eval $(call BuildPackage,python3-pydantic-core-src))
|
Loading…
Reference in New Issue