aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-07-09 10:10:26 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-07-09 10:10:26 +0000
commit0ee2c865f335be11730ea5e4645059cf844518a3 (patch)
tree135cb95e97479553b962e1712dded7420113366f
parenta2740617001e81cfd4d231f1758ad7b8b860a76f (diff)
devel/py-pydantic2: Add py-pydantic2 2.0
Pydantic provides data validation using Python type hints. Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. Define how data should be in pure, canonical Python 3.7+; validate it with Pydantic.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-pydantic2/Makefile27
-rw-r--r--devel/py-pydantic2/distinfo3
-rw-r--r--devel/py-pydantic2/pkg-descr4
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 711b97f989e9..c2108b7b5205 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5227,6 +5227,7 @@
SUBDIR += py-pycparser
SUBDIR += py-pydantic
SUBDIR += py-pydantic-core
+ SUBDIR += py-pydantic2
SUBDIR += py-pydash
SUBDIR += py-pydecor
SUBDIR += py-pydenticon
diff --git a/devel/py-pydantic2/Makefile b/devel/py-pydantic2/Makefile
new file mode 100644
index 000000000000..9cfb6c35b35e
--- /dev/null
+++ b/devel/py-pydantic2/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= pydantic
+PORTVERSION= 2.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 2
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Data validation using Python type hints
+WWW= https://docs.pydantic.dev/latest/ \
+ https://github.com/pydantic/pydantic
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=22.5.0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}annotated-types>=0.4.0:devel/py-annotated-types@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic-core>=2.0.1<2.0.1_99:devel/py-pydantic-core@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6.1:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pydantic2/distinfo b/devel/py-pydantic2/distinfo
new file mode 100644
index 000000000000..978e4431e9b8
--- /dev/null
+++ b/devel/py-pydantic2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688166016
+SHA256 (pydantic-2.0.tar.gz) = 6e313661b310eb5b2c45168ce05d8dd79f57563adaf3906162a917585576b846
+SIZE (pydantic-2.0.tar.gz) = 572748
diff --git a/devel/py-pydantic2/pkg-descr b/devel/py-pydantic2/pkg-descr
new file mode 100644
index 000000000000..c71e14d69bcd
--- /dev/null
+++ b/devel/py-pydantic2/pkg-descr
@@ -0,0 +1,4 @@
+Pydantic provides data validation using Python type hints.
+
+Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. Define
+how data should be in pure, canonical Python 3.7+; validate it with Pydantic.