diff --git a/dev-python/pypinyin/Manifest b/dev-python/pypinyin/Manifest new file mode 100644 index 0000000000..0be378c786 --- /dev/null +++ b/dev-python/pypinyin/Manifest @@ -0,0 +1 @@ +DIST pypinyin-0.52.0.gh.tar.gz 1768451 BLAKE2B 7de571b0d4dfea176b6fd6792345b0b586a399b3e4665d12c9d7abca4e2ecc857e2a48c2190f324025d50a7794c9d215289c8222d3def126c98c59a4d9b41c70 SHA512 652cd106c3fd0cfb7d21801fd00e331f6963c46ee84882ea8ae875728a4c8c3e64e9244020b10b63071372eceb786a52c7c067ff90807e6509dc75790edffeb7 diff --git a/dev-python/pypinyin/metadata.xml b/dev-python/pypinyin/metadata.xml new file mode 100644 index 0000000000..67b690a334 --- /dev/null +++ b/dev-python/pypinyin/metadata.xml @@ -0,0 +1,12 @@ + + + + + blackteahamburger + blackteahamburger@outlook.com + + + pypinyin + mozillazg/python-pinyin + + diff --git a/dev-python/pypinyin/pypinyin-0.52.0.ebuild b/dev-python/pypinyin/pypinyin-0.52.0.ebuild new file mode 100644 index 0000000000..28190f8ba5 --- /dev/null +++ b/dev-python/pypinyin/pypinyin-0.52.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Tool for converting Chinese characters to pinyin" +HOMEPAGE=" + https://github.com/mozillazg/python-pinyin + https://pypi.org/project/pypinyin +" +SRC_URI="https://github.com/mozillazg/python-pinyin/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +S="${WORKDIR}/python-pinyin-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + sed -i -e '/--cov/d' pytest.ini || die +} + +python_test() { + epytest -s +}