dev-python/text-unidecode: new package

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-04-25 00:03:17 +02:00
parent 3c3f623cbc
commit 2db41d8dd3
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# 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}"
}