2018-03-25 19:37:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-19 14:28:32 +00:00
|
|
|
, mecab
|
|
|
|
, swig
|
2019-06-15 09:44:56 +01:00
|
|
|
, setuptools_scm
|
2018-03-25 19:37:36 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mecab-python3";
|
2019-04-24 17:42:49 +01:00
|
|
|
version = "0.996.2";
|
2018-03-25 19:37:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 17:42:49 +01:00
|
|
|
sha256 = "a80383fba343dad247b486a9afa486b7f0ec6244cb8bbf2d6a24d2fab5f19180";
|
2018-03-25 19:37:36 +01:00
|
|
|
};
|
|
|
|
|
2019-03-19 14:28:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
mecab # for mecab-config
|
|
|
|
swig
|
2019-06-15 09:44:56 +01:00
|
|
|
setuptools_scm
|
2019-03-19 14:28:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ mecab ];
|
2018-03-25 19:37:36 +01:00
|
|
|
|
2019-06-15 09:44:56 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2018-03-25 19:37:36 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A python wrapper for mecab: Morphological Analysis engine";
|
2019-03-19 14:30:50 +00:00
|
|
|
homepage = https://github.com/SamuraiT/mecab-python3;
|
|
|
|
license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three
|
2018-03-25 19:37:36 +01:00
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|