5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
31 lines
515 B
Nix
31 lines
515 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
numpy,
|
|
pkgs,
|
|
pybind11,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (pkgs.fasttext) pname version src;
|
|
|
|
format = "setuptools";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|