devel/py-pydantic-compat: New port: Compatibility layer for pydantic v1/v2

This commit is contained in:
Yuri Victorovich 2024-12-12 17:41:08 -08:00
parent 5d94568a09
commit c61b0cf326
4 changed files with 31 additions and 0 deletions

View file

@ -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

View file

@ -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 <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1734053501
SHA256 (pydantic_compat-0.1.2.tar.gz) = c5c5bca39ca2d22cad00c02898e400e1920e5127649a8e860637f15566739373
SIZE (pydantic_compat-0.1.2.tar.gz) = 12838

View file

@ -0,0 +1 @@
Compatibility layer for pydantic v1/v2.