about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tinysegmenter/default.nix
blob: 2b56544061b70c21420b20449d57b6e06a7b810d (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
, fetchPypi

, unittestCheckHook

, setuptools
}:

buildPythonPackage rec {
  pname = "tinysegmenter";
  version = "0.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ZEWL26VLp0gsAseF+WDPPWz2FZSk2rPWTDJUOQlPwbc=";
  };

  build-system = [
    setuptools
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  unittestFlagsArray = [ "-s" "tests" ];

  pythonImportsCheck = [ "tinysegmenter" ];

  meta = with lib; {
    description = "Very compact Japanese tokenizer";
    homepage = "https://tinysegmenter.tuxfamily.org";
    license = licenses.bsd3;
    maintainers = with maintainers; [ vizid ];
  };
}