about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/simplemma/default.nix
blob: 6c7f5f7c1afb245640658c022b9a9ad22bea4446 (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
, pythonOlder
, fetchFromGitHub

, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "simplemma";
  version = "0.9.1";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "adbar";
    repo = "simplemma";
    rev = "v${version}";
    hash = "sha256-2IvAJ+tRnlYISymYXznCGAoUTKkM/PoYwpZpuMSXRYQ=";
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "simplemma"
  ];

  meta = with lib; {
    description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency";
    homepage = "https://github.com/adbar/simplemma";
    license = licenses.mit;
    maintainers = with maintainers; [ paveloom ];
  };
}