Unverified Commit c4746613 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #191550 from nagy/searx-110

parents 308abeb6 5dc6218a
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -4,24 +4,16 @@ with python3Packages;

toPythonModule (buildPythonApplication rec {
  pname = "searx";
  version = "1.0.0";
  version = "1.1.0";

  # pypi doesn't receive updates
  src = fetchFromGitHub {
    owner = "searx";
    repo = "searx";
    rev = "v${version}";
    sha256 = "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh";
    sha256 = "sha256-+Wsg1k/h41luk5aVfSn11/lGv8hZYVvpHLbbYHfsExw=";
  };

  patches = [
    # Fix a crash, remove with the next update
    (fetchpatch {
      url = "https://github.com/searx/searx/commit/9c10b150963babb7f0b52081693a42b2e61eede9.patch";
      sha256 = "0svp8799628wja2hq59da6rxqi99am8p6hb8y27ciwzsjz0wwba7";
    })
  ];

  postPatch = ''
    sed -i 's/==.*$//' requirements.txt
  '';
@@ -50,6 +42,7 @@ toPythonModule (buildPythonApplication rec {
    pyyaml
    requests
    speaklater
    setproctitle
    werkzeug
  ];