From patchwork Thu Jul 8 03:55:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 31223 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3074627BC81; Thu, 8 Jul 2021 04:57:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D7A3827BC78 for ; Thu, 8 Jul 2021 04:57:11 +0100 (BST) Received: from localhost ([::1]:46142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1L9z-0007Wg-0G for patchwork@mira.cbaines.net; Wed, 07 Jul 2021 23:57:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1L9r-0007WW-4z for guix-patches@gnu.org; Wed, 07 Jul 2021 23:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1L9q-0002wE-2J for guix-patches@gnu.org; Wed, 07 Jul 2021 23:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1L9p-0006ws-WC for guix-patches@gnu.org; Wed, 07 Jul 2021 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49461] [PATCH 2/2] gnu: Add searx. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Jul 2021 03:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49461 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49461@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 49461-submit@debbugs.gnu.org id=B49461.162571656226635 (code B ref 49461); Thu, 08 Jul 2021 03:57:01 +0000 Received: (at 49461) by debbugs.gnu.org; 8 Jul 2021 03:56:02 +0000 Received: from localhost ([127.0.0.1]:53962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1L8s-0006vX-8p for submit@debbugs.gnu.org; Wed, 07 Jul 2021 23:56:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1L8p-0006ue-0o for 49461@debbugs.gnu.org; Wed, 07 Jul 2021 23:56:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5A8812400E5 for <49461@debbugs.gnu.org>; Thu, 8 Jul 2021 05:55:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1625716553; bh=8uWa0pWorz6u78H1k+/wJzqQsrVZ38N3qN+bEX1JpHA=; h=From:To:Cc:Subject:Date:From; b=psoeBejlfbMi5HBq3lqg3OylSkQeyn+vByarpjjcZ7koIW9vHxrleAY0eGzBnQ6Wk jlH0jK/u9SAOmvVd26a0PjM3MwUd9/U9VYAXw7dhxmd9nQci4Rp2Es5lr72yVi0A15 IwMSwfbwZnrKMpnQmdiNcLpyL8dxzKTd9Nie8e2SXDVltvrYSbxcU9oz6H7PXXPivA mAO6Hrxp5T+3GB/YeoeyuoVGpEn6Gnhq7zBU8z/yllda1NCNQSb9CJn9uTegxSVug7 qxkbTpX+KkZQ6ELyGKW152ww2H77pzgcAyNvCfSOmjHY3hLj3Kv6/qJO4B8GbSj23V //ij2pY5Vc1qQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GL2Wr064Dz6tmG; Thu, 8 Jul 2021 05:55:51 +0200 (CEST) From: Vinicius Monego Date: Thu, 8 Jul 2021 03:55:27 +0000 Message-Id: <20210708035527.20486-2-monego@posteo.net> In-Reply-To: <20210708035527.20486-1-monego@posteo.net> References: <20210708035527.20486-1-monego@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/search.scm (searx): New variable. --- gnu/packages/search.scm | 53 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 362eb0d95e..44d5b631ca 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2018 Adam Massmann ;;; Copyright © 2020 Hartmut Goebel +;;; Copyright © 2021 Vinicius Monego ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,7 +25,7 @@ (define-module (gnu packages search) #:use-module ((guix licenses) - #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license)) + #:select (gpl2 gpl2+ gpl3+ agpl3+ lgpl2.1+ bsd-3 x11 perl-license)) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -43,9 +44,11 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pdf) #:use-module (gnu packages python) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages sphinx) + #:use-module (gnu packages time) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) @@ -207,6 +210,54 @@ files and directories.") command line tool for interacting with libtocc.") (license gpl3+))) +(define-public searx + (package + (name "searx") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/searx/searx") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;what tests do is make online requests to each engine + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + ;; These packages are outdated in Guix at the time of packaging. + ;; When they are updated, remove corresponding substitutions. + ;; Tests can run after build with 'searx-checker' tool in /bin. + (substitute* "requirements.txt" + (("flask-babel==2.0.0") "flask-babel>=1.0.0") + (("jinja2==2.11.3") "jinja2>=2.11.2") + (("lxml==4.6.3") "lxml>=4.4.2") + (("pygments==2.8.0") "pygments>=2.7.3") + (("requests\\[socks\\]==2.25.1") "requests>=2.25") + (("==") ">="))))))) + (propagated-inputs + `(("python-babel" ,python-babel) + ("python-certifi" ,python-certifi) + ("python-dateutil" ,python-dateutil) + ("python-flask" ,python-flask) + ("python-flask-babel" ,python-flask-babel) + ("python-idna" ,python-idna) + ("python-jinja2" ,python-jinja2) + ("python-langdetect" ,python-langdetect) + ("python-lxml" ,python-lxml) + ("python-pygments" ,python-pygments) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests))) + (home-page "https://searx.github.io/searx/") + (synopsis "Privacy-respecting metasearch engine") + (description "Searx is a privacy-respecting, hackable metasearch engine.") + (license agpl3+))) + (define-public bool (package (name "bool")