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