2021-11-12 09:22:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
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
|
|
|
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2019-05-14 19:27:13 +01:00
|
|
|
};
|
|
|
|
}
|