792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
34 lines
690 B
Nix
34 lines
690 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mecab
|
|
, swig
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mecab-python3";
|
|
version = "1.0.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-5wPXjIimcau4FwNRZEhQAV2bv6sxUwo7QNEkgaZ3mhE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
mecab # for mecab-config
|
|
swig
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ mecab ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A python wrapper for mecab: Morphological Analysis engine";
|
|
homepage = "https://github.com/SamuraiT/mecab-python3";
|
|
license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three
|
|
maintainers = with maintainers; [ ixxie ];
|
|
};
|
|
}
|