From 56219af82241a2d15306d0423ebf4b98b1bae360 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 24 May 2023 09:01:29 +0200 Subject: [PATCH] python310Packages.pypinyin: update meta - add format - disable on unsupported Python releases --- pkgs/development/python-modules/pypinyin/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pypinyin/default.nix b/pkgs/development/python-modules/pypinyin/default.nix index 27a424a7685..8175214d68d 100644 --- a/pkgs/development/python-modules/pypinyin/default.nix +++ b/pkgs/development/python-modules/pypinyin/default.nix @@ -2,11 +2,15 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "pypinyin"; version = "0.49.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mozillazg"; @@ -31,7 +35,7 @@ buildPythonPackage rec { 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"; + changelog = "https://github.com/mozillazg/python-pinyin/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = teams.tts.members; };