python3Packages.tinysegmenter: init at 0.3

This commit is contained in:
Radik Islamov
2024-03-08 23:17:10 +05:00
parent 9d40e8863f
commit a345ed5ca4
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, unittestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "tinysegmenter";
version = "0.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-7R9tLoBqR1inO+WJdUOEy62tx+GkFMgaFm/JrfLUDG0=";
};
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 ];
};
}
+2
View File
@@ -14745,6 +14745,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 { };