evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pypinyin / default.nix
blob48f4d8d79811170483cf2affe2aef12031b931ba
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "pypinyin";
11   version = "0.53.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "mozillazg";
18     repo = "python-pinyin";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-NGW94Labk3vAv4bfq/+ba2lnL/uebg0ODZWEi2yNIjg=";
21   };
23   postPatch = ''
24     substituteInPlace pytest.ini --replace \
25       "--cov-report term-missing" ""
26   '';
28   nativeCheckInputs = [ pytestCheckHook ];
30   pytestFlagsArray = [ "tests" ];
32   meta = with lib; {
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;
39   };