From a97acb19cdfdff3d58b864eb551003095078dd7f Mon Sep 17 00:00:00 2001 From: bofh Date: Sat, 21 Nov 2015 10:41:58 +0000 Subject: [NEW] www/py3-aiohttp: HTTP client/server for asyncio - Python3 specific version for www/py-aiohttp; although this uses a version 3.3+ but unfortunately the dependent still uses version 2 HTTP client/server for Python asyncio (PEP-3156) Features: * Compression (deflate) * HTTP Basic Authenntication * Chunked Transfer Encoding * Connection Pooling * Session Cookies * Custom Request/Response classes WWW: https://github.com/KeepSafe/aiohttp --- www/Makefile | 1 + www/py3-aiohttp/Makefile | 35 +++++++++++++++++++++++++++++++++++ www/py3-aiohttp/distinfo | 2 ++ www/py3-aiohttp/pkg-descr | 12 ++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 www/py3-aiohttp/Makefile create mode 100644 www/py3-aiohttp/distinfo create mode 100644 www/py3-aiohttp/pkg-descr (limited to 'www') diff --git a/www/Makefile b/www/Makefile index cad65ec0f2e2..84e03cf5a92b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1777,6 +1777,7 @@ SUBDIR += py-wsgiauth SUBDIR += py-wsgidav SUBDIR += py-zope.app.wsgi + SUBDIR += py3-aiohttp SUBDIR += pyblosxom SUBDIR += pycarddav SUBDIR += pydio diff --git a/www/py3-aiohttp/Makefile b/www/py3-aiohttp/Makefile new file mode 100644 index 000000000000..dab59ef6c044 --- /dev/null +++ b/www/py3-aiohttp/Makefile @@ -0,0 +1,35 @@ +# Created by: Muhammad Moinur Rahman +# $FreeBSD$ + +PORTNAME= aiohttp +PORTVERSION= 0.16.3 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= bofh@FreeBSD.org +COMMENT= HTTP client/server for asyncio + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py3-chardet +TEST_DEPENDS:= ${RUN_DEPENDS} \ + ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \ + ${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn + +OPTIONS_DEFINE= TESTS +TESTS_DESC= Install test suite requirements +TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} + +USES= python:3 +USE_PYTHON= autoplist distutils + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/_websocket.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/_multidict.so + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include diff --git a/www/py3-aiohttp/distinfo b/www/py3-aiohttp/distinfo new file mode 100644 index 000000000000..7e22ed2b048f --- /dev/null +++ b/www/py3-aiohttp/distinfo @@ -0,0 +1,2 @@ +SHA256 (aiohttp-0.16.3.tar.gz) = eaf479acc98ffee0a029882465ebf21f3c302e1b94a41b16c8a5a695bc614900 +SIZE (aiohttp-0.16.3.tar.gz) = 1442720 diff --git a/www/py3-aiohttp/pkg-descr b/www/py3-aiohttp/pkg-descr new file mode 100644 index 000000000000..4dbd52fa53ce --- /dev/null +++ b/www/py3-aiohttp/pkg-descr @@ -0,0 +1,12 @@ +HTTP client/server for Python asyncio (PEP-3156) + +Features: + + * Compression (deflate) + * HTTP Basic Authenntication + * Chunked Transfer Encoding + * Connection Pooling + * Session Cookies + * Custom Request/Response classes + +WWW: https://github.com/KeepSafe/aiohttp -- cgit