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