Skip to content

Commit

Permalink
python3Packages.tinysegmenter: init at 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ViZiD committed Mar 8, 2024
1 parent 9d40e88 commit a345ed5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/tinysegmenter/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit a345ed5

Please sign in to comment.