587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
38 lines
679 B
Nix
38 lines
679 B
Nix
{ 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 ];
|
|
};
|
|
}
|