1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 marisa-trie,
7 platformdirs,
8 pytest,
9 pytest-cov-stub,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "simplemma";
15 version = "1.1.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "adbar";
20 repo = "simplemma";
21 tag = "v${version}";
22 hash = "sha256-aFN/cOSqsrTJ5GMw0/SM7uoC+T1RhDTQFf8AF00Tz/o=";
23 };
24
25 build-system = [
26 setuptools
27 ];
28
29 optional-dependencies = {
30 marisa-trie = [
31 marisa-trie
32 platformdirs
33 ];
34 };
35
36 nativeCheckInputs = [
37 pytest-cov-stub
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "simplemma" ];
42
43 meta = {
44 description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency";
45 homepage = "https://github.com/adbar/simplemma";
46 license = lib.licenses.mit;
47 maintainers = [ ];
48 };
49}