From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0OuWNHhlaWOlSAEAbAwnHQ (envelope-from ) for ; Mon, 07 Nov 2022 21:07:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kLqZNHhlaWNcBQAA9RJhRA (envelope-from ) for ; Mon, 07 Nov 2022 21:07:20 +0100 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 94B21918B for ; Mon, 7 Nov 2022 21:07:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os8Oe-0000Ck-OP; Mon, 07 Nov 2022 15:07:04 -0500 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 1os8Oc-0000BY-Uh for guix-patches@gnu.org; Mon, 07 Nov 2022 15:07:02 -0500 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 1os8Oc-0002qT-Me for guix-patches@gnu.org; Mon, 07 Nov 2022 15:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1os8Oc-0006cf-Hw for guix-patches@gnu.org; Mon, 07 Nov 2022 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59111] [PATCH 2/2] gnu: Add htmlq. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Nov 2022 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59111 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59111@debbugs.gnu.org Cc: Greg Hogan Received: via spool by 59111-submit@debbugs.gnu.org id=B59111.166785156525348 (code B ref 59111); Mon, 07 Nov 2022 20:07:02 +0000 Received: (at 59111) by debbugs.gnu.org; 7 Nov 2022 20:06:05 +0000 Received: from localhost ([127.0.0.1]:35463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8Nh-0006ah-2i for submit@debbugs.gnu.org; Mon, 07 Nov 2022 15:06:05 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:47004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8Ne-0006ZW-MU for 59111@debbugs.gnu.org; Mon, 07 Nov 2022 15:06:03 -0500 Received: by mail-qk1-f175.google.com with SMTP id z30so7847240qkz.13 for <59111@debbugs.gnu.org>; Mon, 07 Nov 2022 12:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BNZpUXHx/r3Z7wPzGIIGvMHHJXtJFNisDOrl4ufqzBc=; b=cvynV6ZE73ByNFFgGwfNZg/5zXVYUXUvKl20Hge45SGdGTCsPv6JmSv3sDbC5Rgrqy 8EOnIylkiSVS/EmpTpolxnrFQFNp6GBR1bYjYwtow0W4SfhxakGkZiAWqqzx3OCfmcYd tmn+EfKDXG6pe6RuT4OGiSgHn+mv6ToOsI2LGva+Aea3/XLKT9HC1OqMKi9MVNwGpe6C IYtU/FeI9bw9g9ZdXM5LiSyGmND6xasuZI2bQeypdhCar437QzyDNeEwOkb/5RStxZ1y 39JZnrhRV+FD3WP4e5tm7+5MBAqb4WXXjclMXP/BQ7w75LWnaS+XxfpgQg3jDTE1O9w/ PiMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BNZpUXHx/r3Z7wPzGIIGvMHHJXtJFNisDOrl4ufqzBc=; b=MzKhRdQATwEv24unaCNUNaA+fzbSy2xDcefbpfiXSt7F1IYR0y04HIDyG5ElvKwMYb qlpwgNM0Mootk8Hbs/jRrsOqeEWJ/usQt57AZDg3l3xPmW8C+GXfiW9207OirwbEAS8j nqc00PVRhJ2V3fdCyP/0AFOUK99qrC49Kwv/1ot9P+IqtNghTL+zlyyZ3+6oPPIOfJun S0cEaG7FF43Sjw9mU83nPfVWphFj1n43tp8JbUkftX9LjfMJ1OBkbahlFQcd/pOEjtVb lKwlQ4zq4aEThWHNR6zd2KuQOESGd74XZ8VC3P9CuxFy6aRgHkW3usOIzb0Z4LkCb1nu wRKg== X-Gm-Message-State: ACrzQf35dIDWJBbsSSwHTZCakBY85F5CT/pKK9+/HJQsewB+y4oXGa6d ASea5RATNFbGPrPEkYMFmK8CAulLqCclxLABOt0= X-Google-Smtp-Source: AMsMyM5jIu2eax8UH5GUQohUFm5x0spfWqejubXtamc1G5J1y5waN8QFJQGLkbZNPz0F1M/CKw3iMg== X-Received: by 2002:a37:c246:0:b0:6fa:263c:574b with SMTP id j6-20020a37c246000000b006fa263c574bmr32809937qkm.484.1667851556698; Mon, 07 Nov 2022 12:05:56 -0800 (PST) Received: from ip-10-114-89-162.evoforge.org (ec2-52-70-167-183.compute-1.amazonaws.com. [52.70.167.183]) by smtp.gmail.com with ESMTPSA id bk42-20020a05620a1a2a00b006fa4b111c76sm7615665qkb.36.2022.11.07.12.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 12:05:56 -0800 (PST) From: Greg Hogan Date: Mon, 7 Nov 2022 20:05:38 +0000 Message-Id: <41ca4e09bc7e9d131d53bdd166f2e4c5e3d14915.1667851396.git.code@greghogan.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: References: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667851640; 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=BNZpUXHx/r3Z7wPzGIIGvMHHJXtJFNisDOrl4ufqzBc=; b=S5jHb+52vkH1JaLONYhY1JYWhMoWIdAtk5iOFZ6Fn4Rr9tnNBbf4JTJU0CfZfCJESgS4TJ 2y9PAdAofDqWyhn2qM7HlrbjJgoXS3XOZEVMWtttUzeKnP6MDCv1qCLhsidPuIy9fYGnno F13vHLINVDTWkoeOnqbmJs1Ldx4pdasMwE4a11F/7gYFtFq4aHq6ejeLWbJq6IxReJr93Y 82h3ewUvCqNRlVaLo662C9U1F+7YgGFfKGpm76huBPgNfJWMgPv5LUOOLa8nFAhFfa/n4X fiwhYYOKN5KrPUiJhqg2agC7lzS1EqCdGyZFzigMg0Drgr2ORFI8qxWZW5g57A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667851640; a=rsa-sha256; cv=none; b=IA+aehS9docw0+acCUTTOr9CBwhvs86ayKpzXQyc2Ml6rFGKM4SVIxBKx7rFdLRDdOeU9i v8yecdGVMMh6qDTSbLl5mATD4YHGD26gGxemo/YNvKhezxVz83iCslih25MaFW16uKCVEz aNTnfP/f99mC0JLXkqRIjeJIHvhXM7e5vsbpI9hvOWPiMViOWY49W818TqFtirtmE/YvbM LW/AZPBFI0y8rPE02G7xpslL9MBoAQi3q1/VDzkCHluROOPlyzdtDAdYksorYq+7mR9IzF KM48lKZgSbh9tGYUL7LW/y1j6LR+/KgnwDV5CY1nMWPgKLNQ36CFr942zyDuxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=cvynV6ZE; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=cvynV6ZE; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 94B21918B X-Spam-Score: 2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: gdbdU6rMqvOT * gnu/packages/rust-apps.scm (htmlq): New variable. --- gnu/packages/rust-apps.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 693489264d..b7c3e67ee6 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2022 Gabriel Arazas ;;; Copyright © 2022 Ricardo Wurmus ;;; Copyright © 2022 Mathieu Laparie +;;; Copyright © 2022 Greg Hogan ;;; ;;; This file is part of GNU Guix. ;;; @@ -2062,3 +2063,27 @@ (define-public zoxide track of the directories you use most frequently, and uses a ranking algorithm to navigate to the best match.") (license license:expat))) + +(define-public htmlq + (package + (name "htmlq") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "htmlq" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0912cdkz5xji1hzfj1cf42zh1kd860b52xmwwhb7q2jhp6qk25jh")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-clap" ,rust-clap-2) + ("rust-html5ever" ,rust-html5ever-0.25) + ("rust-kuchiki" ,rust-kuchiki-0.8) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-url" ,rust-url-2)))) + (home-page "https://github.com/mgdm/htmlq") + (synopsis "Like jq, but for HTML") + (description "Extract content from HTML files using CSS selectors.") + (license license:expat))) -- 2.38.0