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