1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 )
10 DESCRIPTION="Timeout context manager for asyncio programs"
11 HOMEPAGE="https://github.com/aio-libs/async-timeout"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 RESTRICT="!test? ( test )"
21 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
22 dev-python/setuptools_scm[${PYTHON_USEDEP}]
23 test? ( dev-python/pytest-aiohttp[${PYTHON_USEDEP}] )"
25 python_prepare_all() {
26 sed -i "s:, 'pytest-runner'::" -i setup.py || die
27 distutils-r1_python_prepare_all
31 py.test -v || die "Tests fail with ${EPYTHON}"