# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{{11..15},{13..15}t} )
#PYTHON_COMPAT=( python3_{{11..12},{13..15}{,t}} )

inherit distutils-r1 pypi

DESCRIPTION="Sans-io socks proxy client/server with couple io backends"
HOMEPAGE="https://sans-io.readthedocs.io https://github.com/pohmelie/siosocks"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="trio"

RDEPEND="trio? ( dev-python/trio[${PYTHON_USEDEP}] )"

EPYTEST_PLUGINS=( pytest-{asyncio,trio} )
distutils_enable_tests pytest