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.2.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-mV69KXCjHUfBAKqsECEvR+K/EuKwZTbTiIPJUf807vE="; 25 }; 26 27 nativeBuildInputs = [ 28 cython 29 ]; 30 31 propagatedBuildInputs = [ 32 smart-open 33 numpy 34 scipy 35 ]; 36 37 checkInputs = [ 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 license = licenses.lgpl21Only; 58 maintainers = with maintainers; [ jyp ]; 59 }; 60}