9 buildPythonPackage rec {
12 format = "setuptools";
14 disabled = pythonOlder "3.7";
16 src = fetchFromGitHub {
18 repo = "python-pinyin";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-NGW94Labk3vAv4bfq/+ba2lnL/uebg0ODZWEi2yNIjg=";
24 substituteInPlace pytest.ini --replace \
25 "--cov-report term-missing" ""
28 nativeCheckInputs = [ pytestCheckHook ];
30 pytestFlagsArray = [ "tests" ];
33 description = "Chinese Characters to Pinyin - 汉字转拼音";
34 mainProgram = "pypinyin";
35 homepage = "https://github.com/mozillazg/python-pinyin";
36 changelog = "https://github.com/mozillazg/python-pinyin/blob/v${version}/CHANGELOG.rst";
37 license = licenses.mit;
38 maintainers = teams.tts.members;