dev-python/aiohttp-socks: Bump to 0.5.2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-07-20 10:13:51 +02:00
parent 4f5d095b04
commit 70279e19d1
2 changed files with 45 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST aiohttp-socks-0.2.2.tar.gz 1351798 BLAKE2B 40c9e033de523cad365e95051d48dee5fbd3d964e7b3864393c54d23394a5cfcfcb46cb9d78f25a6101bc97034c77c5a75aef94cfb962054c29bd804e387b0a9 SHA512 218c262cb3eab74166686614ab5a720c31d1ce886cfd655f296c930f648b1d94e909724346769a46b600b8f1bc8ddbc498ee75cd5854e409566a8ead6a7efdab
DIST aiohttp-socks-0.5.2.tar.gz 1360373 BLAKE2B a6de0bd554ba8bf7122dc2b55720430e103ee9784c77b49f919690cba132122c346acf0f1616f7f1cd73a7b5b93794f064c2ee7bb3477fea9c85462c28e121c1 SHA512 92985308f55475265bc438fae6ee30597b542a50b904e3ff69b2bdbdabd15a42dd46b68eb1fa69865931e771aacdb3ffadece72b3b91208eed683a5d98e0d6e7

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1
DESCRIPTION="SOCKS proxy connector for aiohttp"
HOMEPAGE="https://pypi.org/project/aiohttp-socks/"
SRC_URI="https://github.com/romis2012/aiohttp-socks/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Tests require Internet access, also they started failing when run
# via ebuild (but work fine externally)
RESTRICT="test"
# TODO: optional dep on trio
RDEPEND="
>=dev-python/aiohttp-2.3.2[${PYTHON_USEDEP}]
>=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]"
DEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
net-proxy/3proxy
)"
distutils_enable_tests pytest
src_prepare() {
# TODO: reenable when trio is packaged
rm tests/test_core_socks_async_trio.py || die
distutils-r1_src_prepare
}
python_configure_all() {
rm tests/3proxy/bin/*/* || die
if use test; then
ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die
fi
}