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 , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pypinyin"; pname = "pypinyin";
version = "0.49.0"; version = "0.49.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mozillazg"; owner = "mozillazg";
@ -31,7 +35,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Chinese Characters to Pinyin - "; description = "Chinese Characters to Pinyin - ";
homepage = "https://github.com/mozillazg/python-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; license = licenses.mit;
maintainers = teams.tts.members; maintainers = teams.tts.members;
}; };