{ 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; patches = [ # wait for https://github.com/NixOS/nixpkgs/pull/211654 ./revert-flask-babel-3.0.0.patch ]; postPatch = '' sed -i \ -e 's/==.*$//' \ -e 's/fasttext-predict/fasttext/g' \ requirements.txt cat >searx/version_frozen.py <