1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
9 DESCRIPTION="Yet another URL library"
10 HOMEPAGE="https://github.com/aio-libs/yarl/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 ~arm arm64 ~x86"
17 RESTRICT="!test? ( test )"
20 >=dev-python/multidict-4.0[${PYTHON_USEDEP}]
21 >=dev-python/idna-2.0[${PYTHON_USEDEP}]
24 dev-python/setuptools[${PYTHON_USEDEP}]
25 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
27 python_prepare_all() {
28 # don't use pytest-runner for tests
29 sed -i 's|"pytest-runner"||' setup.py || die
31 distutils-r1_python_prepare_all
35 py.test -v tests || die "Tests fail with ${EPYTHON}"