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