Merge pull request #294331 from ViZiD/tinysegmenter

python3Packages.tinysegmenter: init at 0.3
This commit is contained in:
OTABI Tomoya 2024-03-09 15:48:29 +09:00 committed by GitHub
commit 0216d40cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, unittestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "tinysegmenter";
version = "0.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ZEWL26VLp0gsAseF+WDPPWz2FZSk2rPWTDJUOQlPwbc=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
unittestCheckHook
];
unittestFlagsArray = [ "-s" "tests" ];
pythonImportsCheck = [ "tinysegmenter" ];
meta = with lib; {
description = "Very compact Japanese tokenizer";
homepage = "https://tinysegmenter.tuxfamily.org";
license = licenses.bsd3;
maintainers = with maintainers; [ vizid ];
};
}

View File

@ -14755,6 +14755,8 @@ self: super: with self; {
tinyrecord = callPackage ../development/python-modules/tinyrecord { };
tinysegmenter = callPackage ../development/python-modules/tinysegmenter { };
tissue = callPackage ../development/python-modules/tissue { };
titlecase = callPackage ../development/python-modules/titlecase { };