diff options
| author | Sandro <sandro.jaeckel@gmail.com> | 2023-02-16 20:11:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-16 20:11:56 +0100 |
| commit | e1ccff27980d2d80822daf09f33e563a5ea4b89d (patch) | |
| tree | ec7bbcb0247ae844ad66ed47c8fa3bd9ed2d1e41 | |
| parent | Merge pull request #216584 from bobby285271/upd/gnome (diff) | |
| parent | searxng: replace maintainer Kranzes with me (diff) | |
| download | nixpkgs-e1ccff27980d2d80822daf09f33e563a5ea4b89d.tar.gz | |
Merge pull request #216335 from SuperSandro2000/searxng-babel
| -rw-r--r-- | pkgs/development/python-modules/fasttext-predict/default.nix | 35 | ||||
| -rw-r--r-- | pkgs/servers/web-apps/searxng/default.nix | 10 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 42 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/fasttext-predict/default.nix b/pkgs/development/python-modules/fasttext-predict/default.nix new file mode 100644 index 000000000000..9e46a4b8ceeb --- /dev/null +++ b/pkgs/development/python-modules/fasttext-predict/default.nix @@ -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; + }; +} diff --git a/pkgs/servers/web-apps/searxng/default.nix b/pkgs/servers/web-apps/searxng/default.nix index 2b1a6f69b512..9ea17db9ee13 100644 --- a/pkgs/servers/web-apps/searxng/default.nix +++ b/pkgs/servers/web-apps/searxng/default.nix @@ -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 ]; }; } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8272597e28a8..4507bdf696a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |
