2020-04-28 12:16:20 +02:00
|
|
|
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:
|
2019-05-14 20:27:13 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-04-28 12:16:20 +02:00
|
|
|
inherit (pkgs.fasttext) pname version src;
|
2019-05-14 20:27:13 +02:00
|
|
|
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
|
2020-04-28 15:23:36 +02:00
|
|
|
pythonImportsCheck = [ "fasttext" ];
|
|
|
|
|
2019-05-14 20:27:13 +02:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python module for text classification and representation learning";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://fasttext.cc/";
|
2019-05-14 20:27:13 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|