From 40f212a7e957fedab52f3bff6edc0f2d3cd16cc3 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 6 Dec 2020 09:50:12 +0100 Subject: [PATCH] dev-python/hypercorn: new package Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri --- dev-python/hypercorn/Manifest | 1 + dev-python/hypercorn/hypercorn-0.11.1.ebuild | 75 ++++++++++++++++++++ dev-python/hypercorn/metadata.xml | 28 ++++++++ 3 files changed, 104 insertions(+) create mode 100644 dev-python/hypercorn/Manifest create mode 100644 dev-python/hypercorn/hypercorn-0.11.1.ebuild create mode 100644 dev-python/hypercorn/metadata.xml diff --git a/dev-python/hypercorn/Manifest b/dev-python/hypercorn/Manifest new file mode 100644 index 0000000000..18c829f015 --- /dev/null +++ b/dev-python/hypercorn/Manifest @@ -0,0 +1 @@ +DIST hypercorn-0.11.1.zip 189203 BLAKE2B c11a2a221fb6b5a02e96b0f463e33583389c4ab31503572f85f140d6b2d8bf58854441b31599861b648fb0b089bb7d46ec3fa7f972de963d2a2ef28a1da48e84 SHA512 7e7e1980bb82e64154f97059c90d1b429c3f18b8e40b51c2821ddf4e838dd7d95de66e83a09afd52abc8ba2758e1f43831af61c7ad79d829c9409ab6cee4d410 diff --git a/dev-python/hypercorn/hypercorn-0.11.1.ebuild b/dev-python/hypercorn/hypercorn-0.11.1.ebuild new file mode 100644 index 0000000000..a56d3d3670 --- /dev/null +++ b/dev-python/hypercorn/hypercorn-0.11.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +DOCBUILDER="sphinx" +DOCDEPEND=" + dev-python/sphinxcontrib-napoleon + dev-python/pydata-sphinx-theme +" +DOCDIR="${S}/docs" + +inherit distutils-r1 docs optfeature + +DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn" +HOMEPAGE=" + https://gitlab.com/pgjones/hypercorn + https://github.com/pgjones/hypercorn + https://pypi.org/project/Hypercorn +" +SRC_URI="https://github.com/pgjones/hypercorn/archive/${PV}.zip -> ${P}.zip" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +RESTRICT="" +RDEPEND=" + dev-python/h11[${PYTHON_USEDEP}] + >=dev-python/hyper-h2-3.1.0[${PYTHON_USEDEP}] + dev-python/priority[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/wsproto-0.14.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7) +" +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + >=dev-python/mock-4[${PYTHON_USEDEP}] + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and wsproto libraries +and inspired by Gunicorn. Hypercorn supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and +HTTP/2), ASGI/2, and ASGI/3 specifications. Hypercorn can utilise asyncio, uvloop, or trio +worker types. + +Hypercorn can optionally serve the current draft of the HTTP/3 specification +using the aioquic library. To enable this install the h3 optional extra, pip install +hypercorn[h3] and then choose a quic binding e.g. hypercorn --quic-bind localhost:4433 + +Hypercorn was initially part of Quart before being separated out into a +standalone ASGI server. Hypercorn forked from version 0.5.0 of Quart. + + + pgjones/hypercorn + pgjones/hypercorn + hypercorn + + +