1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
10 DESCRIPTION="py.test plugin to abort hanging tests"
11 HOMEPAGE="https://pypi.org/project/pytest-timeout/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux"
18 RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
19 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
22 "${FILESDIR}/pytest-timeout-1.3.3-tests.patch"
26 distutils_install_for_testing
28 pytest -vv || die "Tests fail with ${EPYTHON}"