evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / fasttext-predict / default.nix
blobbdd19640609ef17f8fe2693d71d9234b9de9b9e0
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchPypi,
6   pybind11,
7 }:
9 buildPythonPackage rec {
10   pname = "fasttext-predict";
11   version = "0.9.2.2";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-rMbf09pCHvVYI9g/aq74+PcsuU2LezpmDz4b/w9vRyc=";
17   };
19   postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
20     substituteInPlace setup.py \
21       --replace-fail "-flto" ""
22   '';
24   nativeBuildInputs = [ pybind11 ];
26   # tests are removed from fork
27   doCheck = false;
29   pythonImportsCheck = [ "fasttext" ];
31   meta = with lib; {
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 ];
36   };