Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 34 lines 703 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, mecab 5, swig 6, setuptools_scm 7}: 8 9buildPythonPackage rec { 10 pname = "mecab-python3"; 11 version = "0.996.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "a80383fba343dad247b486a9afa486b7f0ec6244cb8bbf2d6a24d2fab5f19180"; 16 }; 17 18 nativeBuildInputs = [ 19 mecab # for mecab-config 20 swig 21 setuptools_scm 22 ]; 23 24 buildInputs = [ mecab ]; 25 26 doCheck = false; 27 28 meta = with lib; { 29 description = "A python wrapper for mecab: Morphological Analysis engine"; 30 homepage = https://github.com/SamuraiT/mecab-python3; 31 license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three 32 maintainers = with maintainers; [ ixxie ]; 33 }; 34}