python310Packages.fasttext-predict: init at 0.9.2.1

This commit is contained in:
Sandro Jäckel 2023-02-14 17:34:46 +01:00 committed by Sandro Jäckel
parent 6fe0b23086
commit cb1546dedb
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ 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;
};
}

View File

@ -3291,6 +3291,8 @@ self: super: with self; {
fasttext = callPackage ../development/python-modules/fasttext { };
fasttext-predict = callPackage ../development/python-modules/fasttext-predict { };
favicon = callPackage ../development/python-modules/favicon { };
fb-re2 = callPackage ../development/python-modules/fb-re2 { };