diff --git a/devel/Makefile b/devel/Makefile index a650012f1e69..9352a3ff47c2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5515,6 +5515,7 @@ SUBDIR += py-pycrdt SUBDIR += py-pycrdt-websocket SUBDIR += py-pydantic + SUBDIR += py-pydantic-compat SUBDIR += py-pydantic-core SUBDIR += py-pydantic-extra-types SUBDIR += py-pydantic-settings diff --git a/devel/py-pydantic-compat/Makefile b/devel/py-pydantic-compat/Makefile new file mode 100644 index 000000000000..b10e2ca9dfbd --- /dev/null +++ b/devel/py-pydantic-compat/Makefile @@ -0,0 +1,26 @@ +PORTNAME= pydantic-compat +DISTVERSION= 0.1.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Compatibility layer for pydantic v1/v2 +WWW= https://github.com/pyapp-kit/pydantic-compat + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include diff --git a/devel/py-pydantic-compat/distinfo b/devel/py-pydantic-compat/distinfo new file mode 100644 index 000000000000..9a325952d772 --- /dev/null +++ b/devel/py-pydantic-compat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1734053501 +SHA256 (pydantic_compat-0.1.2.tar.gz) = c5c5bca39ca2d22cad00c02898e400e1920e5127649a8e860637f15566739373 +SIZE (pydantic_compat-0.1.2.tar.gz) = 12838 diff --git a/devel/py-pydantic-compat/pkg-descr b/devel/py-pydantic-compat/pkg-descr new file mode 100644 index 000000000000..3e33d5a3f2aa --- /dev/null +++ b/devel/py-pydantic-compat/pkg-descr @@ -0,0 +1 @@ +Compatibility layer for pydantic v1/v2.