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