about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ipadic/default.nix
blob: bb7724a50576824f23dcbf436153397821634200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, mecab
, setuptools-scm
, cython
}:

buildPythonPackage rec {
  pname = "ipadic";
  version = "1.0.0";
  format = "setuptools";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "polm";
    repo = "ipadic-py";
    rev = "refs/tags/v${version}";
    hash = "sha256-ybC8G1AOIZWkS3uQSErXctIJKq9Y7xBjRbBrO8/yAj4=";
  };

  # no tests
  doCheck = false;

  nativeBuildInputs = [ cython mecab setuptools-scm ];

  pythonImportsCheck = [ "ipadic" ];

  meta = with lib; {
    description = "Contemporary Written Japanese dictionary";
    homepage = "https://github.com/polm/ipadic-py";
    license = licenses.mit;
    maintainers = with maintainers; [ laurent-f1z1 ];
  };
}