From patchwork Mon Nov 7 20:05:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 44378 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 752CF27BBEB; Mon, 7 Nov 2022 20:07:24 +0000 (GMT) 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 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 2EA0527BBEA for ; Mon, 7 Nov 2022 20:07:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os8Oe-0000CV-Gq; 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-0000BH-Ic 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-0002qM-Ae 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-0006cX-6Q for guix-patches@gnu.org; Mon, 07 Nov 2022 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8. 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.166785156525342 (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]:35461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8Ng-0006af-Nw for submit@debbugs.gnu.org; Mon, 07 Nov 2022 15:06:05 -0500 Received: from mail-qt1-f171.google.com ([209.85.160.171]:36515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1os8Ne-0006ZV-H4 for 59111@debbugs.gnu.org; Mon, 07 Nov 2022 15:06:03 -0500 Received: by mail-qt1-f171.google.com with SMTP id fz10so7557674qtb.3 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=Wx3gxsjvq1nH/+25co4K+hj3l6DFQ6JuDDvuSc3op2s=; b=qcdP3qEaINhbZ7oYZUrG/CyBviiv34871ttyugTC9nbDabWJVVzDCAakegn2RLjcI1 ShpWVw3f0sfhpnwmfHy2hWmjcbA+8c67I9xx7lobkfegsWPTWir435I/y7ZshBJJnh/H IkbclkY4+k5/c4wvEl+PSOpCXYro2IyjQSCF7e3oR4/kbULYJCQ7IDxD562eYLPXyjws u3Qsil5MqdvKZP/82hP2NYe7Sf9flUvj8b0hbuUDvzIzRn4XuSvkacrsi998HAV3x5wq 2Ok5BN08Niwl3A9NTJyfwkf0XGKLcKBA/jJrFZhObTsFmCfl8jV9fHWqfL17tFeML7dT bLog== 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=Wx3gxsjvq1nH/+25co4K+hj3l6DFQ6JuDDvuSc3op2s=; b=XJFfUaJZ7wWjriMz/YLbYYMvRZ1bnqRM4ojyloqqyFyHiwyXN4JDbe1KK9SN/MtDKY BadYK7pdgPXUcq+KkpdYeOQ5stuG+4rcjItknl5Z/+ZzgV6jDKUznpzqZ6e+BUIC+huR t2Fm+osVZj5kZvst04x1wS0cUfuLs0RIrbDlYvK9EbZcCGaiNKFhfVnFNMq5UyJl7d3n 6ThJIVZFCKea+ooOuQIVzB7QZZSPPBZ8M3q3nu38dPdL7Rr6s/Np2wcer9UXeJUpU3DD 8pfW/AvNtDZ3rySKglYAKUrIhUd32EmLUQ3gezM3AtTXbNDc9xZA/fKAVvyfTHyQsPQ1 ub7A== X-Gm-Message-State: ACrzQf1DB/Hv8zWsG754Srqb1mfM5oBm5gON5rZlIajttOW5f20HRiCg ayGFbwD+nw4R3zNMOtJ1BgIHbI/j3evx7OeqKe8= X-Google-Smtp-Source: AMsMyM7Lq81Sj86DKgzmQJDtNEzzc9/TlTFTjBMfQqpoSLTs0qTFohbFq3X8d2yrdb6OBY7eJWsR2A== X-Received: by 2002:ac8:75c6:0:b0:3a5:28ef:7f79 with SMTP id z6-20020ac875c6000000b003a528ef7f79mr32525411qtq.310.1667851556132; 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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 12:05:55 -0800 (PST) From: Greg Hogan Date: Mon, 7 Nov 2022 20:05:37 +0000 Message-Id: <70d6add66e24f38e65606b5e004ded902a0e465e.1667851396.git.code@greghogan.com> X-Mailer: git-send-email 2.38.0 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: , 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/crates-io.scm (rust-kuchiki-0.8): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1118ebbc35..f6939790b9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2022 Evgenii Lepikhin ;;; Copyright © 2022 Gabriel Arazas ;;; Copyright © 2022 ( +;;; Copyright © 2022 Greg Hogan ;;; ;;; This file is part of GNU Guix. ;;; @@ -25955,6 +25956,31 @@ (define-public rust-hts-sys-2 (description "This library provides Rust bindings to HTSlib.") (license license:expat))) +(define-public rust-kuchiki-0.8 + (package + (name "rust-kuchiki") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "kuchiki" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0n53hhscgf4az58nnbjfxlqz9k96h3f02c7fhbzpqdriw33fka0y")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cssparser" ,rust-cssparser-0.27) + ("rust-html5ever" ,rust-html5ever-0.25) + ("rust-matches" ,rust-matches-0.1) + ("rust-selectors" ,rust-selectors-0.22)))) + (home-page "https://github.com/SimonSapin/kuchiki") + (synopsis "HTML/XML tree manipulation library") + (description "A library for parsing and serializing HTML and XML documents +and traversing, manipulating, and querying the document tree.") + (license license:expat))) + (define-public rust-http-0.2 (package (name "rust-http") From patchwork Mon Nov 7 20:05:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 44377 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 57D7627BBEA; Mon, 7 Nov 2022 20:07:21 +0000 (GMT) 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 autolearn=unavailable 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 7EAE127BBE9 for ; Mon, 7 Nov 2022 20:07:20 +0000 (GMT) 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 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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)))