14 buildPythonPackage rec {
17 format = "setuptools";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU=";
27 SETUPTOOLS_SCM_PRETEND_VERSION = version;
29 nativeBuildInputs = [ cython mecab setuptools-scm ];
31 nativeCheckInputs = [ ipadic pytestCheckHook ]
32 ++ passthru.optional-dependencies.unidic-lite;
34 passthru.optional-dependencies = {
35 unidic-lite = [ unidic-lite ];
43 pythonImportsCheck = [ "fugashi" ];
46 description = "A Cython MeCab wrapper for fast, pythonic Japanese tokenization and morphological analysis";
47 homepage = "https://github.com/polm/fugashi";
48 changelog = "https://github.com/polm/fugashi/releases/tag/${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ laurent-f1z1 ];