python310Packages.pypinyin: update meta

- add format
- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-05-24 09:01:29 +02:00 committed by GitHub
parent dd08d9b721
commit 56219af822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};