nixpkgs/pkgs/development/python-modules/gensim/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1,010 B
Nix
Raw Normal View History

2017-06-12 10:15:19 +02:00
{ lib
, buildPythonPackage
, cython
2017-06-12 10:15:19 +02:00
, fetchPypi
, mock
2017-06-12 10:15:19 +02:00
, numpy
, scipy
, smart-open
, testfixtures
, pyemd
, pytestCheckHook
, pythonOlder
2017-06-12 10:15:19 +02:00
}:
buildPythonPackage rec {
pname = "gensim";
version = "4.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
2019-03-01 09:06:20 +01:00
2017-06-12 10:15:19 +02:00
src = fetchPypi {
inherit pname version;
hash = "sha256-i18RwOalMICGtI6PaEEiOk+ho31RNoRhK37oVLUzAV8=";
2017-06-12 10:15:19 +02:00
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
smart-open
numpy
scipy
];
2017-06-12 10:15:19 +02:00
nativeCheckInputs = [
mock
pyemd
pytestCheckHook
];
2017-06-12 10:15:19 +02:00
pythonImportsCheck = [
"gensim"
];
# Test setup takes several minutes
2018-08-08 23:07:18 +02:00
doCheck = false;
2017-06-12 10:15:19 +02:00
pytestFlagsArray = [
"gensim/test"
];
meta = with lib; {
2017-06-12 10:15:19 +02:00
description = "Topic-modelling library";
homepage = "https://radimrehurek.com/gensim/";
changelog = "https://github.com/RaRe-Technologies/gensim/blob/${version}/CHANGELOG.md";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ jyp ];
2017-06-12 10:15:19 +02:00
};
}