{ lib, nixosTests, python3, python3Packages, npins, pins }: let pin = pins.searxng; repo = pin.repository; in with python3Packages; toPythonModule (buildPythonApplication rec { pname = "searxng"; version = "1.0.0pre_${builtins.substring 0 7 pin.revision}"; src = npins.mkSource pins.searxng; postPatch = '' sed -i \ -e 's/==.*$//' \ -e 's/fasttext-predict/fasttext/g' \ requirements.txt cat >searx/version_frozen.py <