git: d7f607e8048b - main - www/py-bravado-core: New port: Library for adding Swagger support to clients and servers

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 02 Jul 2023 16:39:57 UTC
The branch main has been updated by yuri:

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

commit d7f607e8048b94b35c1e15499d57eb682c293d51
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-02 16:39:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-02 16:39:50 +0000

    www/py-bravado-core: New port: Library for adding Swagger support to clients and servers
---
 www/Makefile                  |  1 +
 www/py-bravado-core/Makefile  | 37 +++++++++++++++++++++++++++++++++++++
 www/py-bravado-core/distinfo  |  3 +++
 www/py-bravado-core/pkg-descr |  2 ++
 4 files changed, 43 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 038a613f889d..a6955b279c18 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1449,6 +1449,7 @@
     SUBDIR += py-bottle
     SUBDIR += py-bottle-cork
     SUBDIR += py-branca
+    SUBDIR += py-bravado-core
     SUBDIR += py-cachecontrol
     SUBDIR += py-cachelib
     SUBDIR += py-caldav
diff --git a/www/py-bravado-core/Makefile b/www/py-bravado-core/Makefile
new file mode 100644
index 000000000000..7335f9fdc4be
--- /dev/null
+++ b/www/py-bravado-core/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	bravado-core
+DISTVERSIONPREFIX=	v
+DISTVERSION=	5.17.1
+CATEGORIES=	www python
+#MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for adding Swagger support to clients and servers
+WWW=		https://github.com/Yelp/bravado-core
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonref>=0:devel/py-jsonref@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema>=2.5.1:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}msgpack>=0.5.2:devel/py-msgpack@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}swagger-spec-validator>=2.0.1:devel/py-swagger-spec-validator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Yelp
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} PATH=${STAGEDIR}${PREFIX}/bin:${PATH}
+TEST_WRKSRC=	${WRKSRC}/tests # tests hang, see https://github.com/Yelp/bravado-core/issues/396
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-bravado-core/distinfo b/www/py-bravado-core/distinfo
new file mode 100644
index 000000000000..7a3f8f24e3b3
--- /dev/null
+++ b/www/py-bravado-core/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688315466
+SHA256 (Yelp-bravado-core-v5.17.1_GH0.tar.gz) = dfc5f9475e47c41cffc9bb661e3450c30226f360d1b07975f552c4bda45a83f0
+SIZE (Yelp-bravado-core-v5.17.1_GH0.tar.gz) = 139435
diff --git a/www/py-bravado-core/pkg-descr b/www/py-bravado-core/pkg-descr
new file mode 100644
index 000000000000..550754762b1d
--- /dev/null
+++ b/www/py-bravado-core/pkg-descr
@@ -0,0 +1,2 @@
+bravado-core is a Python library that adds client-side and server-side
+support for the OpenAPI Specification v2.0.