Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2024 01:55:27 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 27601733d87a - main - www/py-flasgger: New port: Extract swagger specs from your flask project
Message-ID:  <202401060155.4061tRhQ098512@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 27601733d87a117799c2e28b59b638c3d576a9c0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-06 01:54:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-06 01:55:22 +0000

    www/py-flasgger: New port: Extract swagger specs from your flask project
---
 www/Makefile              |  1 +
 www/py-flasgger/Makefile  | 43 +++++++++++++++++++++++++++++++++++++++++++
 www/py-flasgger/distinfo  |  3 +++
 www/py-flasgger/pkg-descr |  6 ++++++
 4 files changed, 53 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 07df1104afb0..1701d70ffe55 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1628,6 +1628,7 @@
     SUBDIR += py-fastapi
     SUBDIR += py-fastapi-users
     SUBDIR += py-feedgenerator
+    SUBDIR += py-flasgger
     SUBDIR += py-flask
     SUBDIR += py-flask-admin
     SUBDIR += py-flask-api
diff --git a/www/py-flasgger/Makefile b/www/py-flasgger/Makefile
new file mode 100644
index 000000000000..0b34f4dc6166
--- /dev/null
+++ b/www/py-flasgger/Makefile
@@ -0,0 +1,43 @@
+PORTNAME=	flasgger
+DISTVERSION=	0.9.7.1
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Extract swagger specs from your flask project
+WWW=		http://flasgger.pythonanywhere.com/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apispec>0:devel/py-apispec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flask>=0.10:www/py-flask@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0.1:devel/py-jsonschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mistune>=0:textproc/py-mistune@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}werkzeug>=0:www/py-werkzeug@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=3.0:devel/py-yaml@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apispec-webframeworks>0:devel/py-apispec-webframeworks@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}apispec>=1.0.0b5:devel/py-apispec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}coveralls>0:devel/py-coveralls@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flake8>=3.8.4:devel/py-flake8@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-JWT>0:www/py-flask-jwt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Flask-RESTful>0:www/py-flask-restful@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flex>0:devel/py-flex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}marshmallow>0:devel/py-marshmallow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=4.6:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}twine>=1.11.0:devel/py-twine@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest # tests fail to run, see https://github.com/flasgger/flasgger/issues/605
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-flasgger/distinfo b/www/py-flasgger/distinfo
new file mode 100644
index 000000000000..1261b3c80492
--- /dev/null
+++ b/www/py-flasgger/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704480332
+SHA256 (flasgger-0.9.7.1.tar.gz) = ca098e10bfbb12f047acc6299cc70a33851943a746e550d86e65e60d4df245fb
+SIZE (flasgger-0.9.7.1.tar.gz) = 3979409
diff --git a/www/py-flasgger/pkg-descr b/www/py-flasgger/pkg-descr
new file mode 100644
index 000000000000..8dad5e50aa04
--- /dev/null
+++ b/www/py-flasgger/pkg-descr
@@ -0,0 +1,6 @@
+Flasgger is a Flask extension to extract OpenAPI-Specification from all Flask
+views registered in your API.
+
+Flasgger also comes with SwaggerUI embedded so you can access
+http://localhost:5000/apidocs and visualize and interact with your API
+resources.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401060155.4061tRhQ098512>