diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2023-04-19 21:10:14 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2023-04-19 21:10:14 +0000 |
commit | ed310eb2d63c6d31715ed0edb0782f5c51f5c301 (patch) | |
tree | 0ee097a44c308f7ef3824943f629ebae6fd6fd89 | |
parent | c0d6d4037852142be3e886939175179e3e3be40a (diff) | |
download | ports-ed310eb2d63c6d31715ed0edb0782f5c51f5c301.tar.gz ports-ed310eb2d63c6d31715ed0edb0782f5c51f5c301.zip |
devel/py-aiohttp-apispec: New port: build and document REST APIs with aiohttp and apispec
aiohttp-apispec key features:
- docs and request_schema decorators to add swagger spec support out of the box
- validation_middleware middleware to enable validating with marshmallow
schemas from those decorators;
- SwaggerUI support.
- match_info_schema, querystring_schema, form_schema, json_schema,
headers_schema and cookies_schema decorators for specific request parts
validation.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-aiohttp-apispec/Makefile | 22 | ||||
-rw-r--r-- | devel/py-aiohttp-apispec/distinfo | 3 | ||||
-rw-r--r-- | devel/py-aiohttp-apispec/pkg-descr | 9 |
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index da67a548b09e..0d863c5f3427 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4170,6 +4170,7 @@ SUBDIR += py-aioapns SUBDIR += py-aiocontextvars SUBDIR += py-aiofiles + SUBDIR += py-aiohttp-apispec SUBDIR += py-aioice SUBDIR += py-aioitertools SUBDIR += py-aiologger diff --git a/devel/py-aiohttp-apispec/Makefile b/devel/py-aiohttp-apispec/Makefile new file mode 100644 index 000000000000..001ba3f7de38 --- /dev/null +++ b/devel/py-aiohttp-apispec/Makefile @@ -0,0 +1,22 @@ +PORTNAME= aiohttp-apispec +DISTVERSION= 2.2.3 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= build and document REST APIs with aiohttp and apispec +WWW= https://github.com/maximdanilchenko/aiohttp-apispec + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}apispec>0:devel/py-apispec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}webargs>0:www/py-webargs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/devel/py-aiohttp-apispec/distinfo b/devel/py-aiohttp-apispec/distinfo new file mode 100644 index 000000000000..6ed7215fc6b0 --- /dev/null +++ b/devel/py-aiohttp-apispec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681935757 +SHA256 (aiohttp-apispec-2.2.3.tar.gz) = d70431e5f3ef5c6dc96dc9180ce10ddfd78fa054f178af8259707eb6d421ed05 +SIZE (aiohttp-apispec-2.2.3.tar.gz) = 2653064 diff --git a/devel/py-aiohttp-apispec/pkg-descr b/devel/py-aiohttp-apispec/pkg-descr new file mode 100644 index 000000000000..31eeaf87cbf5 --- /dev/null +++ b/devel/py-aiohttp-apispec/pkg-descr @@ -0,0 +1,9 @@ +aiohttp-apispec key features: + +- docs and request_schema decorators to add swagger spec support out of the box +- validation_middleware middleware to enable validating with marshmallow + schemas from those decorators; +- SwaggerUI support. +- match_info_schema, querystring_schema, form_schema, json_schema, + headers_schema and cookies_schema decorators for specific request parts + validation. |