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} )
8 inherit distutils-r1 git-r3
10 DESCRIPTION="Python library that performs advanced searches in strings"
11 HOMEPAGE="https://github.com/Toilal/rebulk https://pypi.org/project/rebulk/"
12 EGIT_REPO_URI="https://github.com/Toilal/${PN}.git"
14 LICENSE="MIT Apache-2.0"
18 RESTRICT="!test? ( test )"
20 RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
22 dev-python/setuptools[${PYTHON_USEDEP}]
24 dev-python/pytest[${PYTHON_USEDEP}]
25 dev-python/pytest-runner[${PYTHON_USEDEP}]
29 python_prepare_all() {
30 # Remove base64-encoded zip archive with pytest.
33 # Disable unconditional dependency on dev-python/pytest-runner.
34 sed -i -e "s|'pytest-runner'||g" setup.py || die
36 distutils-r1_python_prepare_all