2018-03-25 19:37:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-19 14:28:32 +00:00
|
|
|
, mecab
|
|
|
|
, swig
|
2018-03-25 19:37:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mecab-python3";
|
2019-02-14 07:37:20 +00:00
|
|
|
version = "0.996.1";
|
2018-03-25 19:37:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:20 +00:00
|
|
|
sha256 = "5aca4d0d196161e41452b89921042c0e61a6b7e7e9373211c0c1c50d1809055d";
|
2018-03-25 19:37:36 +01:00
|
|
|
};
|
|
|
|
|
2019-03-19 14:28:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
mecab # for mecab-config
|
|
|
|
swig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ mecab ];
|
2018-03-25 19:37:36 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python wrapper for mecab: Morphological Analysis engine";
|
|
|
|
homepage = https://github.com/LuminosoInsight/wordfreq/;
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|