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

23 lines
529 B
Nix
Raw Normal View History

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