From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mFVVOph35mCYIQEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 05:57:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IM70NZh35mCDVgAAbx9fmQ (envelope-from ) for ; Thu, 08 Jul 2021 03:57:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 97B8722589 for ; Thu, 8 Jul 2021 05:57:12 +0200 (CEST) Received: from localhost ([::1]:46142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1L9z-0007Wg-Ma for larch@yhetil.org; 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625716632; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Js+NvsAnY/hGMvlgodq2CSoP4Tyg/Kgl0Ff2YjT7e1Q=; b=pauGo6+H2WRRBQD/tvhK6ZlwWvl1DkIJt3pPkLVZjwSL/+WTcgpGYg5VSALDQPqLOhYg5Z 39+neenleOaNU8b2NyNCgZwvND2wyEdvEFuguvIGj3d4/KkOxaVSRXJdsyvgnppUHhl1aT JmbTj4+GQBe+/cf15bkh2IaxN1KNztSG5ntangtpwCSC3yHI/y2NswUWjoOGBFpe5TNQjj BUoYPhJn750Kj8/SHwyYrZ6O7BBiuxL8EQQI1vjQ+SxrnPsPuYj6pmsodpZalX9Jn2AV3d ZbHp3+4bvXm7ThWbRQUw92p/3vndufo4x9AuL55BEcwl1/0pSp9V0Ml1c5UdvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625716632; a=rsa-sha256; cv=none; b=QlavYBBRmwuMyZT0yPc3IZXzK/xLLbg61X+SSVpwBd1CkGm3LLYzj48D99NcSJkF6krydq Js71LrYPuxU9oOedwV6MpqdwpypOqrNzq0VELMpClfaTADuuLiizhoqYlPVUD5tL70yt3y jEOW9IK2/UmWhlJr+Q6pCoGfi6dJu4b37Q1h5hl/315PuwcmegHJLtyWbb/UgSaLoOAsal R3DbShsC91TvhpB1H+OhNdMw8DcptrzBedE0BmV3WOzR36oMDa4w2wbAMxF//ZtgO6UFa3 GQVbFmkh2UqCT98RxhnNRNLcBhK2JHsbXOehiJA3lLQ/FXwsv2sLFZAb9pF+kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=psoeBejl; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=psoeBejl; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 97B8722589 X-Spam-Score: -0.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZQfzc7PpyBik * 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") -- 2.32.0