mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-08 03:40:34 -04:00
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
33 lines
730 B
Bash
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}"
|
|
}
|