{ lib, python3, fetchFromGitHub, nixosTests }: python3.pkgs.toPythonModule ( python3.pkgs.buildPythonApplication rec { pname = "searxng"; version = "0-unstable-2024-10-05"; src = fetchFromGitHub { owner = "searxng"; repo = "searxng"; rev = "e7a4d7d7c3d688b69737f2b1ecd23571f5e3a0b9"; hash = "sha256-JfcB19Tfk5e7DyArzz9TNjidOZjkSxTLEU3ZhE105qs="; }; postPatch = '' sed -i 's/==.*$//' requirements.txt ''; preBuild = let versionString = lib.concatStringsSep "." ( builtins.tail (lib.splitString "-" (lib.removePrefix "0-" version)) ); commitAbbrev = builtins.substring 0 8 src.rev; in '' export SEARX_DEBUG="true"; cat > searx/version_frozen.py <