Merge pull request #61506 from danieldk/fasttext-python-0.2.0

pythonPackages.fasttext: init at 0.2.0
This commit is contained in:
Silvan Mosberger 2019-05-17 17:37:54 +02:00 committed by GitHub
commit 9e319fbeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
buildPythonPackage rec {
pname = "fasttext";
version = "0.2.0";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = version;
sha256 = "1fcrz648r2s80bf7vc0l371xillz5jk3ldaiv9jb7wnsyri831b4";
};
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 ];
};
}

View File

@ -403,6 +403,8 @@ in {
fastpbkdf2 = callPackage ../development/python-modules/fastpbkdf2 { }; fastpbkdf2 = callPackage ../development/python-modules/fastpbkdf2 { };
fasttext = callPackage ../development/python-modules/fasttext { };
favicon = callPackage ../development/python-modules/favicon { }; favicon = callPackage ../development/python-modules/favicon { };
fido2 = callPackage ../development/python-modules/fido2 { }; fido2 = callPackage ../development/python-modules/fido2 { };