depot/third_party/nixpkgs/pkgs/development/python-modules/word2vec/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
745 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, cython
, numpy
, scikitlearn
, six
, python
, isPy27
}:
buildPythonPackage rec {
pname = "word2vec";
version = "0.10.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "40f6f30a5f113ffbfc24c5ad5de23bfac897f4c1210fb93685b7fca5c4dee7db";
};
propagatedBuildInputs = [ cython numpy scikitlearn six ];
checkPhase = ''
cd word2vec/tests;
${python.interpreter} test_word2vec.py
'';
meta = with stdenv.lib; {
description = "Tool for computing continuous distributed representations of words";
homepage = "https://github.com/danielfrg/word2vec";
license = licenses.asl20;
maintainers = with maintainers; [ NikolaMandic ];
};
}