1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
10 DESCRIPTION="SOCKS proxy connector for aiohttp"
11 HOMEPAGE="https://pypi.org/project/aiohttp-socks/"
12 SRC_URI="https://github.com/romis2012/aiohttp-socks/archive/${PV}.tar.gz -> ${P}.tar.gz"
18 # Tests require Internet access
21 RDEPEND=">=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}]"
22 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
25 dev-python/pytest[${PYTHON_USEDEP}]
26 dev-python/pytest-asyncio[${PYTHON_USEDEP}]
30 python_configure_all() {
31 rm tests/3proxy/bin/*/* || die
33 ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die
38 pytest -vv || die "Tests fail with ${EPYTHON}"