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