3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fasttext/default.nix

29 lines
663 B
Nix
Raw Normal View History

2019-05-14 19:27:13 +01:00
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
buildPythonPackage rec {
pname = "fasttext";
version = "0.9.1";
2019-05-14 19:27:13 +01:00
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = "v${version}";
sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
2019-05-14 19:27:13 +01:00
};
buildInputs = [ pybind11 ];
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 19:27:13 +01:00
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}