git: 3c88f890f1ad - main - devel/py-openapi-core: Add py-openapi-core 0.14.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 26 Apr 2022 15:04:07 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c88f890f1ad33396e4c2f22f5dedb5efd212b5f

commit 3c88f890f1ad33396e4c2f22f5dedb5efd212b5f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-26 14:46:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-26 15:01:09 +0000

    devel/py-openapi-core: Add py-openapi-core 0.14.2
    
    Openapi-core is a Python library that adds client-side and server-side support
    for the OpenAPI Specification v3.
    
    Key features:
    - Validation of requests and responses
    - Schema casting and unmarshalling
    - Media type and parameters deserialization
    - Security providers (API keys, Cookie, Basic and Bearer HTTP authentications)
    - Custom deserializers and formats
    - Integration with libraries and frameworks
    
    WWW: https://github.com/p1c2u/openapi-core
---
 devel/Makefile                             |  1 +
 devel/py-openapi-core/Makefile             | 30 ++++++++++++++++++++++++++++++
 devel/py-openapi-core/distinfo             |  3 +++
 devel/py-openapi-core/files/patch-dictpath | 29 +++++++++++++++++++++++++++++
 devel/py-openapi-core/pkg-descr            | 12 ++++++++++++
 5 files changed, 75 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index bb33f6783d24..ee2789807577 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4840,6 +4840,7 @@
     SUBDIR += py-onigurumacffi
     SUBDIR += py-opcodes
     SUBDIR += py-openapi-codec
+    SUBDIR += py-openapi-core
     SUBDIR += py-openapi-schema-validator
     SUBDIR += py-openapi-spec-validator
     SUBDIR += py-opencensus
diff --git a/devel/py-openapi-core/Makefile b/devel/py-openapi-core/Makefile
new file mode 100644
index 000000000000..21eab44f2433
--- /dev/null
+++ b/devel/py-openapi-core/Makefile
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	openapi-core
+PORTVERSION=	0.14.2
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Client-side and server-side support for the OpenAPI Specification v3
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}isodate>=0:devel/py-isodate@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lazy-object-proxy>=0:devel/py-lazy-object-proxy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}more-itertools>=0:devel/py-more-itertools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openapi-schema-validator>=0:devel/py-openapi-schema-validator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openapi-spec-validator>=0:devel/py-openapi-spec-validator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}parse>=0:textproc/py-parse@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pathable>=0:devel/py-pathable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
+
+USES=		python:3.5+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-openapi-core/distinfo b/devel/py-openapi-core/distinfo
new file mode 100644
index 000000000000..8784c34ba846
--- /dev/null
+++ b/devel/py-openapi-core/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1650970025
+SHA256 (openapi-core-0.14.2.tar.gz) = 62ad93c8114ce6025f25b004ff0f3674eea8bc4ae920c726e98921fdbe41b4f3
+SIZE (openapi-core-0.14.2.tar.gz) = 27768
diff --git a/devel/py-openapi-core/files/patch-dictpath b/devel/py-openapi-core/files/patch-dictpath
new file mode 100644
index 000000000000..824030d50c49
--- /dev/null
+++ b/devel/py-openapi-core/files/patch-dictpath
@@ -0,0 +1,29 @@
+--- openapi_core/spec/accessors.py.orig	2021-05-14 11:26:22 UTC
++++ openapi_core/spec/accessors.py
+@@ -1,6 +1,6 @@
+ from contextlib import contextmanager
+ 
+-from dictpath.accessors import DictOrListAccessor
++from pathable.accessors import DictOrListAccessor
+ 
+ 
+ class SpecAccessor(DictOrListAccessor):
+--- openapi_core/spec/paths.py.orig	2021-05-14 11:26:22 UTC
++++ openapi_core/spec/paths.py
+@@ -1,4 +1,4 @@
+-from dictpath.paths import AccessorPath
++from pathable.paths import AccessorPath
+ 
+ from openapi_core.spec.accessors import SpecAccessor
+ 
+--- setup.cfg.orig	2021-05-14 11:26:32 UTC
++++ setup.cfg
+@@ -27,7 +27,7 @@ setup_requires = 
+ 	setuptools
+ install_requires = 
+ 	isodate
+-	dictpath
++	pathable
+ 	openapi-spec-validator
+ 	openapi-schema-validator
+ 	six
diff --git a/devel/py-openapi-core/pkg-descr b/devel/py-openapi-core/pkg-descr
new file mode 100644
index 000000000000..94a080e20b3a
--- /dev/null
+++ b/devel/py-openapi-core/pkg-descr
@@ -0,0 +1,12 @@
+Openapi-core is a Python library that adds client-side and server-side support
+for the OpenAPI Specification v3.
+
+Key features:
+- Validation of requests and responses
+- Schema casting and unmarshalling
+- Media type and parameters deserialization
+- Security providers (API keys, Cookie, Basic and Bearer HTTP authentications)
+- Custom deserializers and formats
+- Integration with libraries and frameworks
+
+WWW: https://github.com/p1c2u/openapi-core