1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_PEP517
=setuptools
7 PYTHON_COMPAT
=( python3_
{10.
.13} pypy3
)
11 DESCRIPTION
="Tool for converting Chinese characters to pinyin"
13 https://github.com/mozillazg/python-pinyin
14 https://pypi.org/project/pypinyin
16 SRC_URI
="https://github.com/mozillazg/python-pinyin/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
18 S
="${WORKDIR}/python-pinyin-${PV}"
24 distutils_enable_tests pytest
27 distutils-r1_src_prepare
28 sed -i -e '/--cov/d' pytest.ini || die