1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "simplemma";
11 version = "0.9.1";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "adbar";
17 repo = "simplemma";
18 rev = "v${version}";
19 hash = "sha256-2IvAJ+tRnlYISymYXznCGAoUTKkM/PoYwpZpuMSXRYQ=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "simplemma"
28 ];
29
30 meta = with lib; {
31 description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency";
32 homepage = "https://github.com/adbar/simplemma";
33 license = licenses.mit;
34 maintainers = with maintainers; [ paveloom ];
35 };
36}