python3Packages.dragonmapper: init at 0.2.7 (#335514)

This commit is contained in:
Yueh-Shun Li
2025-03-03 03:01:46 +08:00
committed by GitHub
4 changed files with 118 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
unittestCheckHook,
hanzidentifier,
zhon,
}:
buildPythonPackage rec {
pname = "dragonmapper";
version = "0.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "tsroten";
repo = "dragonmapper";
tag = "v${version}";
hash = "sha256-/02vcjcsUpQA1R1hcp34g/MSzNrKwuEyY5ERQQ5Vemw=";
};
build-system = [ hatchling ];
dependencies = [
hanzidentifier
zhon
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "dragonmapper" ];
meta = {
description = "Identification and conversion functions for Chinese text processing";
homepage = "https://github.com/tsroten/dragonmapper";
changelog = "https://github.com/tsroten/dragonmapper/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
}
@@ -0,0 +1,37 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
unittestCheckHook,
zhon,
}:
buildPythonPackage rec {
pname = "hanzidentifier";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tsroten";
repo = "hanzidentifier";
tag = "v${version}";
hash = "sha256-TVS21zy5UR+tGgVRB6eUguy2PGgruxbc+QR0DYUWl4w=";
};
build-system = [ hatchling ];
dependencies = [ zhon ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "hanzidentifier" ];
meta = {
description = "A Python module that identifies Chinese text as being Simplified or Traditional";
homepage = "https://github.com/tsroten/hanzidentifier";
changelog = "https://github.com/tsroten/hanzidentifier/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
}
@@ -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 ];
};
}
+6
View File
@@ -3928,6 +3928,8 @@ self: super: with self; {
dragonfly = callPackage ../development/python-modules/dragonfly { };
dragonmapper = callPackage ../development/python-modules/dragonmapper { };
dramatiq = callPackage ../development/python-modules/dramatiq { };
drawille = callPackage ../development/python-modules/drawille { };
@@ -5876,6 +5878,8 @@ self: super: with self; {
handy-archives = callPackage ../development/python-modules/handy-archives { };
hanzidentifier = callPackage ../development/python-modules/hanzidentifier { };
hap-python = callPackage ../development/python-modules/hap-python { };
harlequin-bigquery = callPackage ../development/python-modules/harlequin-bigquery { };
@@ -18838,6 +18842,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 { };