mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
f4ecf17b20
Changes: - Refactoring of internal classes. - Better unicode handling. - New Python API: https://fasttext.cc/docs/en/python-module.html https://github.com/facebookresearch/fastText/releases/tag/v0.9.1
29 lines
661 B
Nix
29 lines
661 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 ];
|
|
};
|
|
}
|