<remote-id type="pypi">socketpool</remote-id>
<remote-id type="github">benoitc/socketpool</remote-id>
</upstream>
+ <use>
+ <flag name="gevent">
+ Install <pkg>dev-python/gevent</pkg> as needed for the gevent
+ backend.
+ </flag>
+ </use>
</pkgmetadata>
HOMEPAGE="https://github.com/benoitc/socketpool/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 s390 ~sparc x86"
-IUSE="examples test"
+KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 s390 ~sparc x86"
+IUSE="examples gevent"
LICENSE="|| ( MIT public-domain )"
SLOT="0"
-RDEPEND="$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' 'python2*')"
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ gevent? (
+ $(python_gen_cond_dep '
+ dev-python/gevent[${PYTHON_USEDEP}]
+ ' 'python*')
+ )"
+
+BDEPEND="
+ test? (
+ !ia64? (
+ $(python_gen_cond_dep '
+ dev-python/gevent[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
+ )"
PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch )
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Michał Górny <mgorny@gentoo.org> (2020-04-13)
+# Requires unsupported dev-python/gevent.
+dev-python/socketpool gevent
+
# # Sergei Trofimovich <slyfox@gentoo.org> (2020-04-12)
# ruby-2.7 dropped ia64 support, mask dependencies requiring ruby.
# These pull in: