about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fasttext/default.nix
blob: 42e6446e8643563f71332dcb4eee4bd33629a623 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:

buildPythonPackage rec {
  inherit (pkgs.fasttext) pname version src;

  buildInputs = [ pybind11 ];

  pythonImportsCheck = [ "fasttext" ];

  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 ];
  };
}