summary refs log tree commit diff
path: root/pkgs/development/python-modules/word2vec/default.nix
blob: 36b4b71e0524c779641781de3ba8fb14954eb427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv
, buildPythonPackage
, fetchPypi
, cython
, numpy
, python
}:

buildPythonPackage rec {
  pname = "word2vec";
  version = "0.10.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "40f6f30a5f113ffbfc24c5ad5de23bfac897f4c1210fb93685b7fca5c4dee7db";
  };

  propagatedBuildInputs = [ cython numpy ];

  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 ];
    broken = true;
  };

}