depot/third_party/nixpkgs/pkgs/development/python-modules/fasttext-predict/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

35 lines
832 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pybind11
}:
buildPythonPackage rec {
pname = "fasttext-predict";
version = "0.9.2.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-iSCt54tqBmNfrcntDFRXb550607Zr1mMCO2PC1ZbVQw=";
};
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;
};
}