Files
guru/dev-python/hypercorn/hypercorn-0.11.2.ebuild
T

61 lines
1.7 KiB
Bash
Raw Normal View History

2021-02-17 19:03:29 +01:00
# Copyright 1999-2021 Gentoo Authors
2020-12-06 09:50:12 +01:00
# Distributed under the terms of the GNU General Public License v2
2021-02-17 19:03:29 +01:00
EAPI=7
2020-12-06 09:50:12 +01:00
DISTUTILS_USE_SETUPTOOLS=rdepend
2020-12-06 11:19:53 +01:00
DOCS_BUILDER="sphinx"
DOCS_DEPEND="
2020-12-06 09:50:12 +01:00
dev-python/sphinxcontrib-napoleon
dev-python/pydata-sphinx-theme
"
2020-12-06 11:19:53 +01:00
DOCS_DIR="${S}/docs"
2021-07-05 03:20:16 +02:00
PYTHON_COMPAT=( python3_{8..9} )
2020-12-06 09:50:12 +01:00
inherit distutils-r1 docs optfeature
DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn"
HOMEPAGE="
2021-07-05 03:20:16 +02:00
https://pgjones.gitlab.io/hypercorn
2020-12-06 09:50:12 +01:00
https://gitlab.com/pgjones/hypercorn
https://github.com/pgjones/hypercorn
https://pypi.org/project/Hypercorn
"
SRC_URI="https://github.com/pgjones/hypercorn/archive/${PV}.tar.gz -> ${P}.tar.gz"
2020-12-06 09:50:12 +01:00
LICENSE="MIT"
SLOT="0"
2021-04-13 14:27:44 +02:00
KEYWORDS="~amd64"
2020-12-06 09:50:12 +01:00
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}]
"
BDEPEND="
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
>=dev-python/mock-4[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
2021-07-05 03:20:16 +02:00
PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" )
2020-12-06 09:50:12 +01:00
distutils_enable_tests pytest
2021-07-05 03:20:16 +02:00
python_test() {
epytest -vv --deselect tests/trio/test_keep_alive.py::test_http1_keep_alive_pre_request || die
2021-02-17 19:03:29 +01:00
}
pkg_postinst() {
optfeature "asyncio event loop on top of libuv" dev-python/uvloop
optfeature "websockets support using wsproto" dev-python/wsproto
optfeature "websockets support using websockets" dev-python/websockets
optfeature "httpstools package for http protocol" dev-python/httptools
optfeature "efficient debug reload" dev-python/watchgod
}