dev-python/pypinyin: new package, add 0.52.0
This commit is contained in:
1 parent
1f6ce98b70
commit
60dae65436
3 files changed
+46
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST pypinyin-0.52.0.gh.tar.gz 1768451 BLAKE2B 7de571b0d4dfea176b6fd6792345b0b586a399b3e4665d12c9d7abca4e2ecc857e2a48c2190f324025d50a7794c9d215289c8222d3def126c98c59a4d9b41c70 SHA512 652cd106c3fd0cfb7d21801fd00e331f6963c46ee84882ea8ae875728a4c8c3e64e9244020b10b63071372eceb786a52c7c067ff90807e6509dc75790edffeb7
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>blackteahamburger</name>
|
||||
<email>blackteahamburger@outlook.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pypinyin</remote-id>
|
||||
<remote-id type="github">mozillazg/python-pinyin</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user