python310Packages.fasttext-predict: init at 0.9.2.1
This commit is contained in:
parent
6fe0b23086
commit
cb1546dedb
35
pkgs/development/python-modules/fasttext-predict/default.nix
Normal file
35
pkgs/development/python-modules/fasttext-predict/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user