2021-02-05 17:12:51 +00:00
|
|
|
{lib, buildPythonPackage, fetchFromGitHub, 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;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|