depot/third_party/nixpkgs/pkgs/development/python-modules/fasttext/default.nix

31 lines
533 B
Nix
Raw Normal View History

{
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 = with maintainers; [ ];
};
}