blob: 5c5069290f88f90905ee886ec790f757d257438e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "pypinyin";
version = "0.55.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "mozillazg";
repo = "python-pinyin";
tag = "v${version}";
hash = "sha256-Xd5dxEiaByjtZmlORyK4cBPfNyIcZwbF40SvEKZ24Ks=";
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
enabledTestPaths = [ "tests" ];
meta = {
description = "Chinese Characters to Pinyin - 汉字转拼音";
mainProgram = "pypinyin";
homepage = "https://github.com/mozillazg/python-pinyin";
changelog = "https://github.com/mozillazg/python-pinyin/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
teams = [ lib.teams.tts ];
};
}
|