Merge pull request #179621 from Kranzes/searxng

searxng: init at unstable-2022-06-29
This commit is contained in:
Sandro 2022-07-17 01:47:40 +02:00 committed by GitHub
commit 2815ff97dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{ lib
, python3
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "searxng";
version = "unstable-2022-06-29";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "107006515ee9fe9cad9a6f6387db658953d32486";
sha256 = "sha256-uV5XiOVuES9wuBx9S8WhM8jhuxRHlSMvW5Ki8WlDwfM=";
};
postPatch = ''
sed -i 's/==.*$//' requirements.txt
'';
preBuild = ''
export SEARX_DEBUG="true";
'';
propagatedBuildInputs = with python3Packages; [
babel
certifi
python-dateutil
flask
flaskbabel
brotli
jinja2
langdetect
lxml
h2
pygments
pyyaml
redis
uvloop
setproctitle
httpx
httpx-socks
markdown-it-py
];
# tests try to connect to network
doCheck = false;
postInstall = ''
# Create a symlink for easier access to static data
mkdir -p $out/share
ln -s ../${python3.sitePackages}/searx/static $out/share/
'';
meta = with lib; {
homepage = "https://github.com/searxng/searxng";
description = "A fork of Searx, a privacy-respecting, hackable metasearch engine";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ kranzes ];
};
}

View File

@ -23087,6 +23087,8 @@ with pkgs;
searx = callPackage ../servers/web-apps/searx { };
searxng = python3Packages.toPythonModule (callPackage ../servers/web-apps/searxng { });
selfoss = callPackage ../servers/web-apps/selfoss { };
shaarli = callPackage ../servers/web-apps/shaarli { };