diff options
author | Daniël de Kok <me@danieldk.eu> | 2019-05-14 20:27:13 +0200 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2019-05-14 20:27:13 +0200 |
commit | 9b3d4e8b8ba2615b4380605613d7153d4c4960a3 (patch) | |
tree | fff48ed1c25427522865f0caa09f2eec2774d14c /pkgs/development/python-modules/fasttext | |
parent | 2b13c29c3ce5db1a0265fe29d1cdba073d2655ff (diff) | |
download | nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar.gz nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar.bz2 nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar.lz nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar.xz nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.tar.zst nixpkgs-9b3d4e8b8ba2615b4380605613d7153d4c4960a3.zip |
pythonPackages.fasttext: init at 0.2.0
Diffstat (limited to 'pkgs/development/python-modules/fasttext')
-rw-r--r-- | pkgs/development/python-modules/fasttext/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fasttext/default.nix b/pkgs/development/python-modules/fasttext/default.nix new file mode 100644 index 00000000000..05034dc7526 --- /dev/null +++ b/pkgs/development/python-modules/fasttext/default.nix @@ -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 ]; + }; +} |