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

23 lines
521 B
Nix
Raw Permalink Normal View History

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