Skip to content

Commit 7a4e01d

Browse files
authored
python312Packages.simplemma: fix build (#354551)
2 parents 20a337f + 2d78ec7 commit 7a4e01d

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed
Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
lib,
33
buildPythonPackage,
4-
pythonOlder,
54
fetchFromGitHub,
6-
5+
setuptools,
6+
marisa-trie,
7+
platformdirs,
8+
pytest,
9+
pytest-cov-stub,
710
pytestCheckHook,
811
}:
912

1013
buildPythonPackage rec {
1114
pname = "simplemma";
1215
version = "1.1.1";
13-
format = "setuptools";
14-
15-
disabled = pythonOlder "3.6";
16+
pyproject = true;
1617

1718
src = fetchFromGitHub {
1819
owner = "adbar";
@@ -21,14 +22,28 @@ buildPythonPackage rec {
2122
hash = "sha256-X0mqFPdCo0/sTexv4bi4bND7LFHOJvlOPH6tB39ybZY=";
2223
};
2324

24-
nativeCheckInputs = [ pytestCheckHook ];
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+
];
2540

2641
pythonImportsCheck = [ "simplemma" ];
2742

28-
meta = with lib; {
43+
meta = {
2944
description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency";
3045
homepage = "https://github.com/adbar/simplemma";
31-
license = licenses.mit;
46+
license = lib.licenses.mit;
3247
maintainers = [ ];
3348
};
3449
}

0 commit comments

Comments
 (0)