9 buildPythonPackage rec {
10 pname = "fasttext-predict";
12 format = "setuptools";
15 inherit pname version;
16 hash = "sha256-rMbf09pCHvVYI9g/aq74+PcsuU2LezpmDz4b/w9vRyc=";
19 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
20 substituteInPlace setup.py \
21 --replace-fail "-flto" ""
24 nativeBuildInputs = [ pybind11 ];
26 # tests are removed from fork
29 pythonImportsCheck = [ "fasttext" ];
32 description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)";
33 homepage = "https://github.com/searxng/fasttext-predict/";
34 license = licenses.mit;
35 maintainers = with maintainers; [ SuperSandro2000 ];