diff --git a/dev-python/text-unidecode/Manifest b/dev-python/text-unidecode/Manifest new file mode 100644 index 0000000000..7cf837a09d --- /dev/null +++ b/dev-python/text-unidecode/Manifest @@ -0,0 +1 @@ +DIST text-unidecode-1.3.tar.gz 76885 BLAKE2B b783963b4fce6588d45d48a498de566c08df83ae62c72caf599648df195eb94b7c02090503590ab8c747af0d210847ddfbf0772289e170361914db20c049828e SHA512 aeaf0e79bd0545ca7a4fe700d5a7dac1d5900841fcfe8a5a568c84ba7d3bee5f75eaac0531f4a01d689a550ac5bc7e1acaeb8132293f220db8387fae2eb6a150 diff --git a/dev-python/text-unidecode/metadata.xml b/dev-python/text-unidecode/metadata.xml new file mode 100644 index 0000000000..3f17f6d77e --- /dev/null +++ b/dev-python/text-unidecode/metadata.xml @@ -0,0 +1,15 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + text-unidecode + + kmike84@gmail.com + Mikhail Korobov + + + diff --git a/dev-python/text-unidecode/text-unidecode-1.3.ebuild b/dev-python/text-unidecode/text-unidecode-1.3.ebuild new file mode 100644 index 0000000000..496d2de444 --- /dev/null +++ b/dev-python/text-unidecode/text-unidecode-1.3.ebuild @@ -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}" +}