1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, pybind11
6}:
7
8buildPythonPackage rec {
9 pname = "fasttext-predict";
10 version = "0.9.2.2";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-rMbf09pCHvVYI9g/aq74+PcsuU2LezpmDz4b/w9vRyc=";
16 };
17
18 nativeBuildInputs = [
19 pybind11
20 ];
21
22 # tests are removed from fork
23 doCheck = false;
24
25 pythonImportsCheck = [ "fasttext" ];
26
27 meta = with lib; {
28 description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)";
29 homepage = "https://github.com/searxng/fasttext-predict/";
30 license = licenses.mit;
31 maintainers = with maintainers; [ SuperSandro2000 ];
32 # ImportError: dynamic module does not define module export function (PyInit_fasttext_pybind)
33 broken = stdenv.isDarwin;
34 };
35}