about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ipadic/default.nix
blob: 841eccc9e15738a84d60997df154fb53bc7f1a40 (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
37
38
{ 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;

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  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 ];
  };
}