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