commit fa901421a21bff90a761f0d6577304f74be2be11 Author: Goran Mekić Date: Tue Dec 17 22:26:48 2019 +0100 Add flask-smorest diff --git a/www/Makefile b/www/Makefile index 49b3826ddf08..b8857f1036ba 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1641,6 +1641,7 @@ SUBDIR += py-flask-restful SUBDIR += py-flask-restplus SUBDIR += py-flask-script + SUBDIR += py-flask-smorest SUBDIR += py-flask-socketio SUBDIR += py-flask-sockets SUBDIR += py-flask-uploads diff --git a/www/py-flask-smorest/Makefile b/www/py-flask-smorest/Makefile new file mode 100644 index 000000000000..dcc4cb92c984 --- /dev/null +++ b/www/py-flask-smorest/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= flask-smorest +PORTVERSION= 0.18.2 +CATEGORIES= www devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= DB agnostic framework to build auto-documented REST APIs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}werkzeug>=0:www/py-werkzeug@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}marshmallow>=0:devel/py-marshmallow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}webargs>=0:www/py-webargs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}apispec>=0:devel/py-apispec@${PY_FLAVOR} + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}WebTest>0:www/py-WebTest@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist concurrent distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= +.include diff --git a/www/py-flask-smorest/distinfo b/www/py-flask-smorest/distinfo new file mode 100644 index 000000000000..883f291097d0 --- /dev/null +++ b/www/py-flask-smorest/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576574402 +SHA256 (flask-smorest-0.18.2.tar.gz) = c16bab8cd1de750f79e7bcba6f7ffea9a1299f0e69053e41273af920b5a0e748 +SIZE (flask-smorest-0.18.2.tar.gz) = 54329 diff --git a/www/py-flask-smorest/pkg-descr b/www/py-flask-smorest/pkg-descr new file mode 100644 index 000000000000..6407021878f8 --- /dev/null +++ b/www/py-flask-smorest/pkg-descr @@ -0,0 +1,11 @@ +REST API framework built upon Flask and marshmallow. + + - Serialization, deserialization and validation using marshmallow Schema + - Explicit validation error messages returned in response + - Database-agnostic + - OpenAPI (Swagger) specification automatically generated and exposed with + ReDoc or Swagger UI + - Pagination + - ETag + +WWW: https://github.com/marshmallow-code/flask-smorest