Files
nixpkgs/pkgs/development/python-modules/pypinyin/default.nix
2025-07-23 00:18:19 +00:00

40 lines
850 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pypinyin";
version = "0.55.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mozillazg";
repo = "python-pinyin";
tag = "v${version}";
hash = "sha256-Xd5dxEiaByjtZmlORyK4cBPfNyIcZwbF40SvEKZ24Ks=";
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
enabledTestPaths = [ "tests" ];
meta = with lib; {
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 = licenses.mit;
teams = [ teams.tts ];
};
}