1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 16:09:19 +03:00
nixpkgs/pkgs/development/python-modules/tinysegmenter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
679 B
Nix
Raw Normal View History

{ 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 ];
};
}