Files
guru/dev-python/text-unidecode/text-unidecode-1.3.ebuild
Alessandro Barbieri 2db41d8dd3 dev-python/text-unidecode: new package
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2020-04-25 02:37:15 +02:00

34 lines
771 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"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( dev-python/pytest )"
RDEPEND=""
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 || die "Tests fail with ${EPYTHON}"
}