mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
a4642a47d8
python310Packages.pypinyin: 0.47.1 -> 0.48.0
39 lines
832 B
Nix
39 lines
832 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypinyin";
|
|
version = "0.48.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozillazg";
|
|
repo = "python-pinyin";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-gt0jrDPr6FeLB5P9HCSosCHb/W1sAKSusTrCpkqO26E=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini --replace \
|
|
"--cov-report term-missing" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Chinese Characters to Pinyin - 汉字转拼音";
|
|
homepage = "https://github.com/mozillazg/python-pinyin";
|
|
changelog = "https://github.com/mozillazg/python-pinyin/blob/master/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = teams.tts.members;
|
|
};
|
|
}
|