summary refs log tree commit diff
path: root/pkgs/development/python-modules/fasttext/default.nix
blob: 9f1a8b18d7be62843d1dcaecbff295e7a5e3e3ab (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
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:

buildPythonPackage rec {
  pname = "fasttext";
  version = "0.9.1";

  src = fetchFromGitHub {
    owner = "facebookresearch";
    repo = "fastText";
    rev = "v${version}";
    sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
  };

  buildInputs = [ pybind11 ];

  propagatedBuildInputs = [ numpy ];

  preBuild = ''
    HOME=$TMPDIR
  '';

  meta = with stdenv.lib; {
    description = "Python module for text classification and representation learning";
    homepage = https://fasttext.cc/;
    license = licenses.mit;
    maintainers = with maintainers; [ danieldk ];
  };
}