{ lib , python3 , fetchFromGitHub }: python3.pkgs.toPythonModule (python3.pkgs.buildPythonApplication rec { pname = "searxng"; version = "0-unstable-2024-05-31"; src = fetchFromGitHub { owner = "searxng"; repo = "searxng"; rev = "18fb701be225560b3fb1011cc533f785823f26a4"; hash = "sha256-okE/Uxl7YqcM99kLJ4KAlMQi50x5m0bPfYp5bv62WEw="; }; postPatch = '' sed -i 's/==.*$//' requirements.txt # can't be fetchpatched as it is essentially empty and it complains about that # TODO: drop when updating to a version that includes https://github.com/searxng/searxng/pull/3563 touch searx/answerers/random/__init__.py touch searx/answerers/statistics/__init__.py ''; 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 <