1{ lib
2, buildPythonPackage
3, fetchPypi
4, mecab
5, swig
6, setuptools_scm
7}:
8
9buildPythonPackage rec {
10 pname = "mecab-python3";
11 version = "1.0.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "62abe28a1155398325372291483608427bc82681fef80e7d132904415f9fd42e";
16 };
17
18 nativeBuildInputs = [
19 mecab # for mecab-config
20 swig
21 setuptools_scm
22 ];
23
24 buildInputs = [ mecab ];
25
26 doCheck = false;
27
28 meta = with lib; {
29 description = "A python wrapper for mecab: Morphological Analysis engine";
30 homepage = "https://github.com/SamuraiT/mecab-python3";
31 license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three
32 maintainers = with maintainers; [ ixxie ];
33 };
34}