mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
60 lines
912 B
Nix
60 lines
912 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchPypi
|
|
, mock
|
|
, numpy
|
|
, scipy
|
|
, smart-open
|
|
, testfixtures
|
|
, pyemd
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gensim";
|
|
version = "4.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-mV69KXCjHUfBAKqsECEvR+K/EuKwZTbTiIPJUf807vE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
smart-open
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pyemd
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"gensim"
|
|
];
|
|
|
|
# Test setup takes several minutes
|
|
doCheck = false;
|
|
|
|
pytestFlagsArray = [
|
|
"gensim/test"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Topic-modelling library";
|
|
homepage = "https://radimrehurek.com/gensim/";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ jyp ];
|
|
};
|
|
}
|