Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, mecab 5, swig 6, setuptools-scm 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "mecab-python3"; 12 version = "1.0.6"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-FvOKzkhAIL00RqEAVIKWeMHnuX8XQLWLAKMdWVz/Al4="; 20 }; 21 22 nativeBuildInputs = [ 23 mecab # for mecab-config 24 swig 25 setuptools-scm 26 ]; 27 28 buildInputs = [ 29 mecab 30 ]; 31 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "MeCab" 36 ]; 37 38 meta = with lib; { 39 description = "A python wrapper for mecab: Morphological Analysis engine"; 40 homepage = "https://github.com/SamuraiT/mecab-python3"; 41 changelog = "https://github.com/SamuraiT/mecab-python3/releases/tag/v${version}"; 42 license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three 43 maintainers = with maintainers; [ ixxie ]; 44 }; 45}