From ca44a51151a90deafd6fd3c41f339cd8dcf06b3f Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 3 May 2020 20:47:02 +0000 Subject: [PATCH] Add py-aiohttp-middlewares 1.1.0 aiohttp-middlewares is a collection of useful middlewares for aiohttp.web applications. By default aiohttp.web does not provide many built-in middlewares for standart web-development needs such as: handling errors, shielding view handlers, or providing CORS headers. aiohttp-middlewares tries to fix this by providing several middlewares that aims to cover most common web-development needs. WWW: https://github.com/playpauseandstop/aiohttp-middlewares --- www/Makefile | 1 + www/py-aiohttp-middlewares/Makefile | 24 ++++++++++++++++++++++++ www/py-aiohttp-middlewares/distinfo | 3 +++ www/py-aiohttp-middlewares/pkg-descr | 11 +++++++++++ 4 files changed, 39 insertions(+) create mode 100644 www/py-aiohttp-middlewares/Makefile create mode 100644 www/py-aiohttp-middlewares/distinfo create mode 100644 www/py-aiohttp-middlewares/pkg-descr diff --git a/www/Makefile b/www/Makefile index 45a3fe84de01..e1c346cc8af9 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1417,6 +1417,7 @@ SUBDIR += py-WebTest SUBDIR += py-aioh2 SUBDIR += py-aiohttp + SUBDIR += py-aiohttp-middlewares SUBDIR += py-aiohttp-wsgi SUBDIR += py-aiohttp2 SUBDIR += py-aiohttp_cors diff --git a/www/py-aiohttp-middlewares/Makefile b/www/py-aiohttp-middlewares/Makefile new file mode 100644 index 000000000000..db24a8a1f03a --- /dev/null +++ b/www/py-aiohttp-middlewares/Makefile @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= aiohttp-middlewares +PORTVERSION= 1.1.0 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Collection of useful middlewares for aiohttp applications + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.5<4.0:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}async_timeout>=1.2<4:devel/py-async_timeout@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-aiohttp-middlewares/distinfo b/www/py-aiohttp-middlewares/distinfo new file mode 100644 index 000000000000..a250a746745c --- /dev/null +++ b/www/py-aiohttp-middlewares/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1588450790 +SHA256 (aiohttp-middlewares-1.1.0.tar.gz) = 4a58c090ea50f44ae49a8ce1dc79f7366b8b6223f179f499bc97f399751efeed +SIZE (aiohttp-middlewares-1.1.0.tar.gz) = 14645 diff --git a/www/py-aiohttp-middlewares/pkg-descr b/www/py-aiohttp-middlewares/pkg-descr new file mode 100644 index 000000000000..8580b3f923cd --- /dev/null +++ b/www/py-aiohttp-middlewares/pkg-descr @@ -0,0 +1,11 @@ +aiohttp-middlewares is a collection of useful middlewares for aiohttp.web +applications. + +By default aiohttp.web does not provide many built-in middlewares for standart +web-development needs such as: handling errors, shielding view handlers, or +providing CORS headers. + +aiohttp-middlewares tries to fix this by providing several middlewares that aims +to cover most common web-development needs. + +WWW: https://github.com/playpauseandstop/aiohttp-middlewares