mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
35 lines
703 B
Nix
35 lines
703 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mecab
|
|
, swig
|
|
, setuptools_scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mecab-python3";
|
|
version = "0.996.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a80383fba343dad247b486a9afa486b7f0ec6244cb8bbf2d6a24d2fab5f19180";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|