git: 63d7ebb671a6 - main - devel/py-pydantic-extra-types: Add py-pydantic-extra-types 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 09 Jul 2023 10:33:35 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=63d7ebb671a6a18d59ca0eb5166e4f5afa27a1b7

commit 63d7ebb671a6a18d59ca0eb5166e4f5afa27a1b7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-07-09 10:10:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-07-09 10:10:27 +0000

    devel/py-pydantic-extra-types: Add py-pydantic-extra-types 2.0.0
    
    Pydantic Extra Types is a place for pydantic types that probably shouldn't exist
    in the main pydantic lib.
---
 devel/Makefile                          |  1 +
 devel/py-pydantic-extra-types/Makefile  | 31 +++++++++++++++++++++++++++++++
 devel/py-pydantic-extra-types/distinfo  |  3 +++
 devel/py-pydantic-extra-types/pkg-descr |  2 ++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index c2108b7b5205..0e2547c91e57 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5227,6 +5227,7 @@
     SUBDIR += py-pycparser
     SUBDIR += py-pydantic
     SUBDIR += py-pydantic-core
+    SUBDIR += py-pydantic-extra-types
     SUBDIR += py-pydantic2
     SUBDIR += py-pydash
     SUBDIR += py-pydecor
diff --git a/devel/py-pydantic-extra-types/Makefile b/devel/py-pydantic-extra-types/Makefile
new file mode 100644
index 000000000000..6f9996704631
--- /dev/null
+++ b/devel/py-pydantic-extra-types/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	pydantic-extra-types
+PORTVERSION=	2.0.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pydantic_extra_types-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Extra Pydantic types
+WWW=		https://docs.pydantic.dev/dev-v2/usage/types/types/ \
+		https://github.com/pydantic/pydantic-extra-types
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0:devel/py-pydantic2@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	ALL
+OPTIONS_DEFAULT=ALL
+ALL_DESC=	Country codes and phone number support
+
+ALL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}phonenumbers>=8<9:devel/py-phonenumbers@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}pycountry>=22<23:textproc/py-pycountry@${PY_FLAVOR} \
+
+.include <bsd.port.mk>
diff --git a/devel/py-pydantic-extra-types/distinfo b/devel/py-pydantic-extra-types/distinfo
new file mode 100644
index 000000000000..2f90565883b2
--- /dev/null
+++ b/devel/py-pydantic-extra-types/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688166018
+SHA256 (pydantic_extra_types-2.0.0.tar.gz) = 137ddacb168d95ea77591dbb3739ec4da5eeac0fc4df7f797371d9904451a178
+SIZE (pydantic_extra_types-2.0.0.tar.gz) = 23579
diff --git a/devel/py-pydantic-extra-types/pkg-descr b/devel/py-pydantic-extra-types/pkg-descr
new file mode 100644
index 000000000000..557fa1555fbc
--- /dev/null
+++ b/devel/py-pydantic-extra-types/pkg-descr
@@ -0,0 +1,2 @@
+Pydantic Extra Types is a place for pydantic types that probably shouldn't exist
+in the main pydantic lib.