1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, mecab 6, setuptools-scm 7, cython 8}: 9 10buildPythonPackage rec { 11 pname = "ipadic"; 12 version = "1.0.0"; 13 format = "setuptools"; 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "polm"; 18 repo = "ipadic-py"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-ybC8G1AOIZWkS3uQSErXctIJKq9Y7xBjRbBrO8/yAj4="; 21 }; 22 23 # no tests 24 doCheck = false; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ cython mecab setuptools-scm ]; 29 30 pythonImportsCheck = [ "ipadic" ]; 31 32 meta = with lib; { 33 description = "Contemporary Written Japanese dictionary"; 34 homepage = "https://github.com/polm/ipadic-py"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ laurent-f1z1 ]; 37 }; 38}