diff --git a/dev-python/python-socks/Manifest b/dev-python/python-socks/Manifest index 38acc0e8ee0a..1386ee3c2890 100644 --- a/dev-python/python-socks/Manifest +++ b/dev-python/python-socks/Manifest @@ -1 +1,2 @@ DIST python-socks-2.7.1.gh.tar.gz 32377 BLAKE2B c6d6422c54cd1ab7d53d85e073d62ed51b31daff8eda820c30083e517229ed5a230147c469e241a879fdef3ff50b4642ff769439c2e4ca92d8bb00737bd31e17 SHA512 93e42db6b08e8742897cf704b5d5b33f8873439f32118caa5e65bdca6b89be145814466fdb5ea559a8f1f517f228524597567ba9d2ad83df9f805d9fd3311f9b +DIST python-socks-2.7.2.gh.tar.gz 32394 BLAKE2B 47302bc64cd3d767b8050f5c324450c73c6d002827c1038461a7a226d656f18e2adb69d8b9b3baf3cdd11869309a1a3d6340f9df8175ca9f0f2010dbdd1bb5f2 SHA512 69089f6f5ab1bb8010ef5e9b4c8513fd5e24f353f78186d186616474fb2eae81b689b7e21b049dfb2d885be143f45591103f7c4054d9723f4bc74bfbfeb77b1f diff --git a/dev-python/python-socks/python-socks-2.7.2.ebuild b/dev-python/python-socks/python-socks-2.7.2.ebuild new file mode 100644 index 000000000000..a468b7f17ceb --- /dev/null +++ b/dev-python/python-socks/python-socks-2.7.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 + +DESCRIPTION="SOCKS4, SOCKS5, HTTP tunneling functionality for Python" +HOMEPAGE=" + https://github.com/romis2012/python-socks/ + https://pypi.org/project/python-socks/ +" +SRC_URI=" + https://github.com/romis2012/python-socks/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# curio is not packaged +# asyncio is the only backend we have, so dep on its deps unconditionally +# TODO: revisit +BDEPEND=" + test? ( + >=dev-python/async-timeout-3.0.1[${PYTHON_USEDEP}] + >=dev-python/flask-1.1.2[${PYTHON_USEDEP}] + >=dev-python/tiny-proxy-0.1.1[${PYTHON_USEDEP}] + >=dev-python/trio-0.24[${PYTHON_USEDEP}] + >=dev-python/trustme-0.9.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.4.2[${PYTHON_USEDEP}] + ) +" + +# Test markers exist to exclude trio etc if needed +EPYTEST_PLUGINS=( anyio pytest-{asyncio,trio} ) +distutils_enable_tests pytest