diff --git a/devel/Makefile b/devel/Makefile index c504c6ccdb94..10abb435c872 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4962,6 +4962,7 @@ SUBDIR += py-pycodestyle SUBDIR += py-pycompilation SUBDIR += py-pycparser + SUBDIR += py-pydantic SUBDIR += py-pydenticon SUBDIR += py-pydevd SUBDIR += py-pydispatcher diff --git a/devel/py-pydantic/Makefile b/devel/py-pydantic/Makefile new file mode 100644 index 000000000000..44582d1f1be6 --- /dev/null +++ b/devel/py-pydantic/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= pydantic +DISTVERSION= 0.22 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Data validation and settings management using python 3.6 type hinting + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +py36_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +.include diff --git a/devel/py-pydantic/distinfo b/devel/py-pydantic/distinfo new file mode 100644 index 000000000000..7bcac76b1c41 --- /dev/null +++ b/devel/py-pydantic/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1554012049 +SHA256 (pydantic-0.22.tar.gz) = 853b4fb72bc5bc9a2e16df09730884fc75bc104d8e331fdc83892899adee21cb +SIZE (pydantic-0.22.tar.gz) = 46576 diff --git a/devel/py-pydantic/pkg-descr b/devel/py-pydantic/pkg-descr new file mode 100644 index 000000000000..a97609e7a649 --- /dev/null +++ b/devel/py-pydantic/pkg-descr @@ -0,0 +1,4 @@ +Data validation and settings management using python type hinting. +Define how data should be in pure, canonical python; validate it with pydantic. + +WWW: https://github.com/samuelcolvin/pydantic