mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
23 lines
521 B
Nix
23 lines
521 B
Nix
{lib, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (pkgs.fasttext) pname version src;
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
pythonImportsCheck = [ "fasttext" ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
preBuild = ''
|
|
HOME=$TMPDIR
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python module for text classification and representation learning";
|
|
homepage = "https://fasttext.cc/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ danieldk ];
|
|
};
|
|
}
|