mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-22 01:11:02 +03:00
python3Packages.pypinyin: init at 0.41.0
This commit is contained in:
parent
03b236db05
commit
5cf4e89fef
2 changed files with 40 additions and 0 deletions
38
pkgs/development/python-modules/pypinyin/default.nix
Normal file
38
pkgs/development/python-modules/pypinyin/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pypinyin";
|
||||||
|
version = "0.41.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mozillazg";
|
||||||
|
repo = "python-pinyin";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1s01dd5n6cgjg24dmji0abxkyvr1yi18lx4rpm9z54v0q3wkccg9";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pytest.ini --replace \
|
||||||
|
"--cov-report term-missing" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
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 = with maintainers; [ hexa mic92 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6210,6 +6210,8 @@ in {
|
||||||
|
|
||||||
pypillowfight = callPackage ../development/python-modules/pypillowfight { };
|
pypillowfight = callPackage ../development/python-modules/pypillowfight { };
|
||||||
|
|
||||||
|
pypinyin = callPackage ../development/python-modules/pypinyin { };
|
||||||
|
|
||||||
pyplaato = callPackage ../development/python-modules/pyplaato { };
|
pyplaato = callPackage ../development/python-modules/pyplaato { };
|
||||||
|
|
||||||
pyplatec = callPackage ../development/python-modules/pyplatec { };
|
pyplatec = callPackage ../development/python-modules/pyplatec { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue