5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
30 lines
515 B
Nix
30 lines
515 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
numpy,
|
|
pkgs,
|
|
pybind11,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (pkgs.fasttext) pname version src;
|
|
|
|
format = "setuptools";
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
pythonImportsCheck = [ "fasttext" ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
preBuild = ''
|
|
HOME=$TMPDIR
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python module for text classification and representation learning";
|
|
homepage = "https://fasttext.cc/";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|