python3Packages.zhon: init at 2.0.2

This commit is contained in:
Yueh-Shun Li
2024-08-18 07:11:25 +08:00
parent 6313551cd0
commit bee9907b4b
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zhon";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "tsroten";
repo = "zhon";
tag = "v${version}";
hash = "sha256-LFuEXu0IPJ6UFHhJKqQHp829wndNypmmhO0yZ1WEAXg=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "zhon" ];
meta = {
description = "Constants used in Chinese text processing";
homepage = "https://github.com/tsroten/zhon";
changelog = "https://github.com/tsroten/zhon/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
}

View File

@@ -18822,6 +18822,8 @@ self: super: with self; {
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
zhon = callPackage ../development/python-modules/zhon { };
ziafont = callPackage ../development/python-modules/ziafont { };
ziamath = callPackage ../development/python-modules/ziamath { };