2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
, mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
2021-05-28 09:39:13 +00:00
|
|
|
, smart-open
|
2022-04-27 09:35:20 +00:00
|
|
|
, testfixtures
|
|
|
|
, pyemd
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gensim";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "4.3.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-ZL1+ximQIVh4gi6LJWnRg1BU9WzfU2AN3+mSfjHztI0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
smart-open
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
mock
|
|
|
|
pyemd
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gensim"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test setup takes several minutes
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"gensim/test"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Topic-modelling library";
|
|
|
|
homepage = "https://radimrehurek.com/gensim/";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = with maintainers; [ jyp ];
|
2023-02-09 11:40:11 +00:00
|
|
|
# python310 errors as: No matching distribution found for FuzzyTM>=0.4.0
|
|
|
|
# python311 errors as: longintrepr.h: No such file or directory
|
|
|
|
broken = true; # At 2023-02-05
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|