Files
guru/dev-python/text-unidecode/text-unidecode-1.3.ebuild
Andrew Ammerlaan 584bde557d dev-python/text-unidecode: pytest verbose (-vv)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
2020-04-25 12:48:36 +02:00

33 lines
730 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="The most basic Text::Unidecode port"
HOMEPAGE="https://github.com/kmike/text-unidecode"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="|| ( Artistic GPL-1 GPL-2+ )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
distutils_enable_tests pytest
python_prepare_all() {
sed -i '/pytest-runner/d' setup.py
distutils-r1_python_prepare_all
}
python_test() {
distutils_install_for_testing
cd "${TEST_DIR}" || die
cp "${S}/test_unidecode.py" . || die
cp "${S}/setup.cfg" . || die
pytest -vv || die "Tests fail with ${EPYTHON}"
}