summaryrefslogtreecommitdiff
path: root/www/py-h11
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2018-02-26 12:06:13 +0000
committerleot <leot@pkgsrc.org>2018-02-26 12:06:13 +0000
commitcc87816ba79d484531811e8484e4de85c11435cc (patch)
treecabc47cc44e785e33d1894c37033326ba2a7df81 /www/py-h11
parent7416bc7c88f7f1ad9ba88db9fea6a5102156d742 (diff)
downloadpkgsrc-cc87816ba79d484531811e8484e4de85c11435cc.tar.gz
py-h11: Import py-h11-0.7.0 as www/py-h11
This is a little HTTP/1.1 library written from scratch in Python, heavily inspired by hyper-h2. It's a "bring-your-own-I/O" library; h11 contains no IO code whatsoever. This means you can hook h11 up to your favorite network API, and that could be anything you want: synchronous, threaded, asynchronous, or your own implementation of RFC 6214 - h11 won't judge you. (Compare this to the current state of the art, where every time a new network API comes along then someone gets to start over reimplementing the entire HTTP protocol from scratch.)
Diffstat (limited to 'www/py-h11')
-rw-r--r--www/py-h11/DESCR10
-rw-r--r--www/py-h11/Makefile17
-rw-r--r--www/py-h11/PLIST69
-rw-r--r--www/py-h11/distinfo6
4 files changed, 102 insertions, 0 deletions
diff --git a/www/py-h11/DESCR b/www/py-h11/DESCR
new file mode 100644
index 00000000000..e4d92a17a33
--- /dev/null
+++ b/www/py-h11/DESCR
@@ -0,0 +1,10 @@
+This is a little HTTP/1.1 library written from scratch in Python,
+heavily inspired by hyper-h2.
+
+It's a "bring-your-own-I/O" library; h11 contains no IO code
+whatsoever. This means you can hook h11 up to your favorite network
+API, and that could be anything you want: synchronous, threaded,
+asynchronous, or your own implementation of RFC 6214 - h11 won't
+judge you. (Compare this to the current state of the art, where
+every time a new network API comes along then someone gets to start
+over reimplementing the entire HTTP protocol from scratch.)
diff --git a/www/py-h11/Makefile b/www/py-h11/Makefile
new file mode 100644
index 00000000000..17e25461cb4
--- /dev/null
+++ b/www/py-h11/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2018/02/26 12:06:13 leot Exp $
+
+DISTNAME= h11-0.7.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_PYPI:=h/h11/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/njsmith/h11
+COMMENT= Pure-Python, bring-your-own-I/O implementation of HTTP/1.1
+LICENSE= mit
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-h11/PLIST b/www/py-h11/PLIST
new file mode 100644
index 00000000000..4b93feec6ef
--- /dev/null
+++ b/www/py-h11/PLIST
@@ -0,0 +1,69 @@
+@comment $NetBSD: PLIST,v 1.1 2018/02/26 12:06:13 leot Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/h11/__init__.py
+${PYSITELIB}/h11/__init__.pyc
+${PYSITELIB}/h11/__init__.pyo
+${PYSITELIB}/h11/_connection.py
+${PYSITELIB}/h11/_connection.pyc
+${PYSITELIB}/h11/_connection.pyo
+${PYSITELIB}/h11/_events.py
+${PYSITELIB}/h11/_events.pyc
+${PYSITELIB}/h11/_events.pyo
+${PYSITELIB}/h11/_headers.py
+${PYSITELIB}/h11/_headers.pyc
+${PYSITELIB}/h11/_headers.pyo
+${PYSITELIB}/h11/_readers.py
+${PYSITELIB}/h11/_readers.pyc
+${PYSITELIB}/h11/_readers.pyo
+${PYSITELIB}/h11/_receivebuffer.py
+${PYSITELIB}/h11/_receivebuffer.pyc
+${PYSITELIB}/h11/_receivebuffer.pyo
+${PYSITELIB}/h11/_state.py
+${PYSITELIB}/h11/_state.pyc
+${PYSITELIB}/h11/_state.pyo
+${PYSITELIB}/h11/_util.py
+${PYSITELIB}/h11/_util.pyc
+${PYSITELIB}/h11/_util.pyo
+${PYSITELIB}/h11/_version.py
+${PYSITELIB}/h11/_version.pyc
+${PYSITELIB}/h11/_version.pyo
+${PYSITELIB}/h11/_writers.py
+${PYSITELIB}/h11/_writers.pyc
+${PYSITELIB}/h11/_writers.pyo
+${PYSITELIB}/h11/tests/__init__.py
+${PYSITELIB}/h11/tests/__init__.pyc
+${PYSITELIB}/h11/tests/__init__.pyo
+${PYSITELIB}/h11/tests/data/test-file
+${PYSITELIB}/h11/tests/helpers.py
+${PYSITELIB}/h11/tests/helpers.pyc
+${PYSITELIB}/h11/tests/helpers.pyo
+${PYSITELIB}/h11/tests/test_against_stdlib_http.py
+${PYSITELIB}/h11/tests/test_against_stdlib_http.pyc
+${PYSITELIB}/h11/tests/test_against_stdlib_http.pyo
+${PYSITELIB}/h11/tests/test_connection.py
+${PYSITELIB}/h11/tests/test_connection.pyc
+${PYSITELIB}/h11/tests/test_connection.pyo
+${PYSITELIB}/h11/tests/test_events.py
+${PYSITELIB}/h11/tests/test_events.pyc
+${PYSITELIB}/h11/tests/test_events.pyo
+${PYSITELIB}/h11/tests/test_headers.py
+${PYSITELIB}/h11/tests/test_headers.pyc
+${PYSITELIB}/h11/tests/test_headers.pyo
+${PYSITELIB}/h11/tests/test_helpers.py
+${PYSITELIB}/h11/tests/test_helpers.pyc
+${PYSITELIB}/h11/tests/test_helpers.pyo
+${PYSITELIB}/h11/tests/test_io.py
+${PYSITELIB}/h11/tests/test_io.pyc
+${PYSITELIB}/h11/tests/test_io.pyo
+${PYSITELIB}/h11/tests/test_receivebuffer.py
+${PYSITELIB}/h11/tests/test_receivebuffer.pyc
+${PYSITELIB}/h11/tests/test_receivebuffer.pyo
+${PYSITELIB}/h11/tests/test_state.py
+${PYSITELIB}/h11/tests/test_state.pyc
+${PYSITELIB}/h11/tests/test_state.pyo
+${PYSITELIB}/h11/tests/test_util.py
+${PYSITELIB}/h11/tests/test_util.pyc
+${PYSITELIB}/h11/tests/test_util.pyo
diff --git a/www/py-h11/distinfo b/www/py-h11/distinfo
new file mode 100644
index 00000000000..18f0ba21ad4
--- /dev/null
+++ b/www/py-h11/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/02/26 12:06:13 leot Exp $
+
+SHA1 (h11-0.7.0.zip) = 82dda1ecde1d8c2e5056fe329c177a8a62d13772
+RMD160 (h11-0.7.0.zip) = 549b548f195333573f7b3a6f4157af33303b0b27
+SHA512 (h11-0.7.0.zip) = abf9b8f7f12870804539049c3bfebbbe476e394636aed9967aa725d501fff983f28c7f14b4b882c17914d00fe3e74417ff8922128d0e4e07bf042a7db6d0b100
+Size (h11-0.7.0.zip) = 105979 bytes