1{ lib
2, buildPythonPackage
3, cython
4, fetchPypi
5, mock
6, numpy
7, scipy
8, smart-open
9, testfixtures
10, pyemd
11, pytestCheckHook
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "gensim";
17 version = "4.3.1";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-i18RwOalMICGtI6PaEEiOk+ho31RNoRhK37oVLUzAV8=";
25 };
26
27 nativeBuildInputs = [
28 cython
29 ];
30
31 propagatedBuildInputs = [
32 smart-open
33 numpy
34 scipy
35 ];
36
37 nativeCheckInputs = [
38 mock
39 pyemd
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "gensim"
45 ];
46
47 # Test setup takes several minutes
48 doCheck = false;
49
50 pytestFlagsArray = [
51 "gensim/test"
52 ];
53
54 meta = with lib; {
55 description = "Topic-modelling library";
56 homepage = "https://radimrehurek.com/gensim/";
57 changelog = "https://github.com/RaRe-Technologies/gensim/blob/${version}/CHANGELOG.md";
58 license = licenses.lgpl21Only;
59 maintainers = with maintainers; [ jyp ];
60 };
61}