2021-12-06 16:07:01 +00:00
|
|
|
{lib, buildPythonPackage, numpy, pkgs, pybind11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-03 17:38:23 +00:00
|
|
|
inherit (pkgs.fasttext) pname version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
pythonImportsCheck = [ "fasttext" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python module for text classification and representation learning";
|
|
|
|
homepage = "https://fasttext.cc/";
|
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|