2021-01-25 08:26:54 +00:00
|
|
|
{lib, 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-14 18:27:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|