depot/third_party/nixpkgs/pkgs/development/python-modules/mecab-python3/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

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 ];
};
}