From patchwork Sat May 20 16:44:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 50174 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 483E627BBEA; Sat, 20 May 2023 17:45:43 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7472D27BBE2 for ; Sat, 20 May 2023 17:45:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Pha-0000ib-7j; Sat, 20 May 2023 12:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0PhY-0000ho-Qn for guix-patches@gnu.org; Sat, 20 May 2023 12:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0PhY-0006RU-ID for guix-patches@gnu.org; Sat, 20 May 2023 12:45:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0PhY-0006fE-DN for guix-patches@gnu.org; Sat, 20 May 2023 12:45:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63612] [PATCH 6/6] gnu: searx: Update to 1.1.0. Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 16:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63612 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63612@debbugs.gnu.org Cc: kiasoc5 Received: via spool by 63612-submit@debbugs.gnu.org id=B63612.168460106925511 (code B ref 63612); Sat, 20 May 2023 16:45:04 +0000 Received: (at 63612) by debbugs.gnu.org; 20 May 2023 16:44:29 +0000 Received: from localhost ([127.0.0.1]:59277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Pgz-0006dK-6r for submit@debbugs.gnu.org; Sat, 20 May 2023 12:44:29 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Pgt-0006cK-Qj for 63612@debbugs.gnu.org; Sat, 20 May 2023 12:44:24 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 82E1F44876; Sat, 20 May 2023 18:44:23 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pmvp55VdGrAM; Sat, 20 May 2023 18:44:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1684601062; bh=i5YI7LxMlZ6s7Ln865/HmbISfP/DJ2SzkWYGL3Zy12k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BPc0QMr/w6EKevWasCbDS/l3Lmi+4w2hiO3Fg9VGIxY15J/q02W24N1piXCwqIPn4 7hlhKGEdlnf37rRYxiYoSNvVMHX4U0CqN23QXgMAOhb3YmIlHGFzOpVwYoOX77CEdK rZcb3QRGyqaszL4ktZmqeTtpQ81JSj58+WEV/WO8BursvNZreOAdiYnrHijxeg3itY pdzEMFe8sKUR76osChfCmV6MJCHDA9jpdUIa+tzRiHyZ+jRCZeSjmrbppWQrVsXFiw kkMRZ9WYDzj2jXE7Decpllay7ZWoeqkbCi3vcrdQNJdT+F2BqPGKDZEuE40Ux1zuve zpc1zg9yagdUg== Date: Sat, 20 May 2023 12:44:12 -0400 Message-Id: In-Reply-To: References: 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: , Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/search.scm (searx): Update to 1.1.0. [source](version): append "v" to commit tag. [build-system]: Use pyproject-build-system. [arguments](phases): Use G-expression. [propagated-inputs]: Add python-brotli, python-setproctitle, and python-pysocks. --- gnu/packages/search.scm | 42 ++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 04e03a55b1..947d191858 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -39,6 +39,7 @@ (define-module (gnu packages search) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages adns) @@ -263,34 +264,35 @@ (define-public tocc (define-public searx (package (name "searx") - (version "1.0.0") + (version "1.1.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/searx/searx") - (commit version))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh")))) - (build-system python-build-system) + (base32 "070kxivn1nxn3klmnqarr2zldyfpyllpv5cnjdp5kqz19zb20szr")))) + (build-system pyproject-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 _ - ;; Tests can run after build with 'searx-checker' tool in /bin. - ;; allow using a higher dependency version - (substitute* "requirements.txt" - (("==") ">=")))) - (add-before 'sanity-check 'set-debug - (lambda _ - ;; the user will need to change the secret key - ;; https://github.com/searx/searx/issues/2278 - (setenv "SEARX_DEBUG" "1")))))) + (list #:tests? #f ;what tests do is make online requests to each engine + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + ;; Tests can run after build with 'searx-checker' tool in /bin. + ;; allow using a higher dependency version + (substitute* "requirements.txt" + (("==") ">=")))) + (add-before 'sanity-check 'set-debug + (lambda _ + ;; the user will need to change the secret key + ;; https://github.com/searx/searx/issues/2278 + (setenv "SEARX_DEBUG" "1")))))) (propagated-inputs (list python-babel + python-brotli python-certifi python-dateutil python-flask @@ -301,7 +303,9 @@ (define-public searx python-lxml python-pygments python-pyyaml - python-requests)) + python-requests + python-setproctitle + python-pysocks)) (home-page "https://searx.github.io/searx/") (synopsis "Privacy-respecting metasearch engine") (description "Searx is a privacy-respecting, hackable metasearch engine.")