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