depot/third_party/nixpkgs/pkgs/development/python-modules/fasttext/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
663 B
Nix

{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
buildPythonPackage rec {
pname = "fasttext";
version = "0.9.1";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = "v${version}";
sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
};
buildInputs = [ pybind11 ];
propagatedBuildInputs = [ numpy ];
preBuild = ''
HOME=$TMPDIR
'';
meta = with stdenv.lib; {
description = "Python module for text classification and representation learning";
homepage = "https://fasttext.cc/";
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}