Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 745 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, cython 5, numpy 6, scikitlearn 7, six 8, python 9, isPy27 10}: 11 12buildPythonPackage rec { 13 pname = "word2vec"; 14 version = "0.10.2"; 15 disabled = isPy27; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "40f6f30a5f113ffbfc24c5ad5de23bfac897f4c1210fb93685b7fca5c4dee7db"; 20 }; 21 22 propagatedBuildInputs = [ cython numpy scikitlearn six ]; 23 24 checkPhase = '' 25 cd word2vec/tests; 26 ${python.interpreter} test_word2vec.py 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "Tool for computing continuous distributed representations of words"; 31 homepage = "https://github.com/danielfrg/word2vec"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ NikolaMandic ]; 34 }; 35 36}