anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / gensim / default.nix
blobc13babd7e4d9078513ebcae8d056af83d8e3ece0
2   lib,
3   buildPythonPackage,
4   cython_0,
5   oldest-supported-numpy,
6   setuptools,
7   fetchPypi,
8   mock,
9   numpy,
10   scipy,
11   smart-open,
12   pyemd,
13   pytestCheckHook,
14   pythonOlder,
17 buildPythonPackage rec {
18   pname = "gensim";
19   version = "4.3.3";
20   pyproject = true;
22   # C code generated with CPython3.12 does not work cython_0.
23   disabled = !(pythonOlder "3.12");
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-hIUgdqaj2I19rFviReJMIcO4GbVl4UwbYfo+Xudtz1c=";
28   };
30   build-system = [
31     cython_0
32     oldest-supported-numpy
33     setuptools
34   ];
36   dependencies = [
37     smart-open
38     numpy
39     scipy
40   ];
42   nativeCheckInputs = [
43     mock
44     pyemd
45     pytestCheckHook
46   ];
48   pythonRelaxDeps = [
49     "scipy"
50   ];
52   pythonImportsCheck = [ "gensim" ];
54   # Test setup takes several minutes
55   doCheck = false;
57   pytestFlagsArray = [ "gensim/test" ];
59   meta = with lib; {
60     description = "Topic-modelling library";
61     homepage = "https://radimrehurek.com/gensim/";
62     changelog = "https://github.com/RaRe-Technologies/gensim/blob/${version}/CHANGELOG.md";
63     license = licenses.lgpl21Only;
64     maintainers = with maintainers; [ jyp ];
65   };