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.4"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "b150ad5fe4260539b4ef184657e552ef81307fbbe60ae1f258bc814549ea90f8"; 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}