{ lib, python3, fetchFromGitHub, nixosTests }: python3.pkgs.toPythonModule ( python3.pkgs.buildPythonApplication rec { pname = "searxng"; version = "0-unstable-2024-06-19"; src = fetchFromGitHub { owner = "searxng"; repo = "searxng"; rev = "acf3f109b2a99a5e6f25f5f2975016a36673c6ef"; hash = "sha256-NdFnB5JEaWo7gt+RwxKxkVtEL8uGLlc4z0ROHN+zoL4="; }; 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 <