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

37 lines
745 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, cython
, numpy
2019-11-17 18:49:59 +00:00
, scikitlearn
, six
, python
2019-11-17 18:49:59 +00:00
, isPy27
}:
buildPythonPackage rec {
pname = "word2vec";
2020-06-06 06:47:37 +00:00
version = "0.11.1";
2019-11-17 18:49:59 +00:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2020-06-06 06:47:37 +00:00
sha256 = "222d8ffb47f385c43eba45e3f308e605fc9736b2b7137d74979adf1a31e7c8b4";
};
2019-11-17 18:49:59 +00:00
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 ];
};
}