From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19BE113835A for ; Mon, 20 Jul 2020 08:55:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E6C6E087E; Mon, 20 Jul 2020 08:55:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 364A8E087E for ; Mon, 20 Jul 2020 08:55:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE66234F43D for ; Mon, 20 Jul 2020 08:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF9592E5 for ; Mon, 20 Jul 2020 08:55:32 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1595235329.70279e19d1d79ea86a6c9d4ce6c1e80737bcbbef.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp-socks/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/aiohttp-socks/Manifest dev-python/aiohttp-socks/aiohttp-socks-0.5.2.ebuild X-VCS-Directories: dev-python/aiohttp-socks/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 70279e19d1d79ea86a6c9d4ce6c1e80737bcbbef X-VCS-Branch: master Date: Mon, 20 Jul 2020 08:55:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 520113cf-a72d-4c94-b7de-295dc524da65 X-Archives-Hash: 2306461ede6873735f68564e7b7f31bd commit: 70279e19d1d79ea86a6c9d4ce6c1e80737bcbbef Author: Michał Górny gentoo org> AuthorDate: Mon Jul 20 08:13:51 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Jul 20 08:55:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70279e19 dev-python/aiohttp-socks: Bump to 0.5.2 Signed-off-by: Michał Górny gentoo.org> dev-python/aiohttp-socks/Manifest | 1 + .../aiohttp-socks/aiohttp-socks-0.5.2.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/aiohttp-socks/Manifest b/dev-python/aiohttp-socks/Manifest index 1c7204d25b3..02d338734bc 100644 --- a/dev-python/aiohttp-socks/Manifest +++ b/dev-python/aiohttp-socks/Manifest @@ -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 diff --git a/dev-python/aiohttp-socks/aiohttp-socks-0.5.2.ebuild b/dev-python/aiohttp-socks/aiohttp-socks-0.5.2.ebuild new file mode 100644 index 00000000000..2be59ad90cd --- /dev/null +++ b/dev-python/aiohttp-socks/aiohttp-socks-0.5.2.ebuild @@ -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 +}