Merge pull request #216335 from SuperSandro2000/searxng-babel
This commit is contained in:
commit
e1ccff2798
3 changed files with 42 additions and 5 deletions
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;
|
||||
};
|
||||
}
|
|
@ -5,13 +5,13 @@
|
|||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "searxng";
|
||||
version = "unstable-2022-09-01";
|
||||
version = "unstable-2023-03-13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "174e5242569812618af4ebd9a646ba2a6ded5459";
|
||||
sha256 = "sha256-Q1+4HkgOoTRtW5XYWpC5dpukkrjG5fP0585soo/srmQ=";
|
||||
rev = "295c87a926c3deb1e438234550a9d8fbbaad17fa";
|
||||
sha256 = "sha256-ItPFUyyuctx/yyMVUn5Ez9f+taNiV6FR0q9wz1jwk8M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -26,11 +26,11 @@ python3.pkgs.buildPythonApplication rec {
|
|||
babel
|
||||
certifi
|
||||
python-dateutil
|
||||
fasttext-predict
|
||||
flask
|
||||
flask-babel
|
||||
brotli
|
||||
jinja2
|
||||
langdetect
|
||||
lxml
|
||||
pygments
|
||||
pyyaml
|
||||
|
@ -56,6 +56,6 @@ python3.pkgs.buildPythonApplication rec {
|
|||
homepage = "https://github.com/searxng/searxng";
|
||||
description = "A fork of Searx, a privacy-respecting, hackable metasearch engine";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ kranzes ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3297,6 +3297,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 a new issue