mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
dev-python/uvicorn: use flags for optional packages
Signed-off-by: Piotr Staroszczyk <piotr.staroszczyk@get24.org>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user