depot/third_party/nixpkgs/pkgs/development/python-modules/tinysegmenter/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
684 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 ];
};
}