dev-python/uvicorn: use flags for optional packages

Signed-off-by: Piotr Staroszczyk <piotr.staroszczyk@get24.org>
This commit is contained in:
Piotr Staroszczyk
2020-03-13 14:13:18 +01:00
parent b324b7b2fb
commit d4e6c976e9
2 changed files with 9 additions and 2 deletions

View File

@@ -6,4 +6,9 @@
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<use>
<flag name="wsproto">add websockets support using wsproto package</flag>
<flag name="websockets">add websockets support using websockets package</flag>
<flag name="httptools">use httpstools package for http protocol</flag>
</use>
</pkgmetadata>

View File

@@ -18,14 +18,16 @@ LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="doc"
IUSE="wsproto websockets httptools doc"
REQUIRED_USE="x86? ( !doc )"
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/h11[${PYTHON_USEDEP}]
>=dev-python/uvloop-0.14.0[${PYTHON_USEDEP}]
dev-python/wsproto[${PYTHON_USEDEP}]"
wsproto? ( dev-python/wsproto[${PYTHON_USEDEP}] )
websockets? ( >=dev-python/websockets-6.0[${PYTHON_USEDEP}] )
httptools? ( >=dev-python/httptools-0.1.1[${PYTHON_USEDEP}] )"
BDEPEND="doc? ( !x86? (
dev-python/mkdocs