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

23 lines
531 B
Nix
Raw Normal View History

{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:
2019-05-14 20:27:13 +02:00
buildPythonPackage rec {
inherit (pkgs.fasttext) pname version src;
2019-05-14 20:27:13 +02:00
buildInputs = [ pybind11 ];
pythonImportsCheck = [ "fasttext" ];
2019-05-14 20:27:13 +02:00
propagatedBuildInputs = [ numpy ];
preBuild = ''
HOME=$TMPDIR
'';
meta = with stdenv.lib; {
description = "Python module for text classification and representation learning";
homepage = "https://fasttext.cc/";
2019-05-14 20:27:13 +02:00
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}