From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id jeyPE97RKmANKwAA0tVLHw (envelope-from ) for ; Mon, 15 Feb 2021 19:56:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AGq+Dt7RKmClewAAbx9fmQ (envelope-from ) for ; Mon, 15 Feb 2021 19:56:14 +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 985661A713 for ; Mon, 15 Feb 2021 20:56:13 +0100 (CET) Received: from localhost ([::1]:49750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBjye-0003uO-Qf for larch@yhetil.org; Mon, 15 Feb 2021 14:56:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBjyV-0003rK-6A for guix-patches@gnu.org; Mon, 15 Feb 2021 14:56:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBjyU-0001ze-07 for guix-patches@gnu.org; Mon, 15 Feb 2021 14:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBjyT-0003gO-VV for guix-patches@gnu.org; Mon, 15 Feb 2021 14:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46543] [PATCH] gnu: Add pup. Resent-From: Stefan =?UTF-8?Q?Reich=C3=B6r?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Feb 2021 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46543@debbugs.gnu.org Cc: Stefan =?UTF-8?Q?Reich=C3=B6r?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161341890314060 (code B ref -1); Mon, 15 Feb 2021 19:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2021 19:55:03 +0000 Received: from localhost ([127.0.0.1]:38763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBjxW-0003eh-N7 for submit@debbugs.gnu.org; Mon, 15 Feb 2021 14:55:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:51124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBjxU-0003eF-5P for submit@debbugs.gnu.org; Mon, 15 Feb 2021 14:55:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBjxT-0003jA-Q8 for guix-patches@gnu.org; Mon, 15 Feb 2021 14:54:59 -0500 Received: from dd3624.kasserver.com ([85.13.130.11]:44364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBjxN-0001Q6-UO for guix-patches@gnu.org; Mon, 15 Feb 2021 14:54:59 -0500 Received: from localhost (217-149-162-201.nat.highway.telekom.at [217.149.162.201]) by dd3624.kasserver.com (Postfix) with ESMTPA id 94EB35D4008B; Mon, 15 Feb 2021 20:54:50 +0100 (CET) From: Stefan =?UTF-8?Q?Reich=C3=B6r?= Date: Mon, 15 Feb 2021 20:54:42 +0100 Message-Id: <20210215195442.65515-1-stefan@xsteve.at> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=85.13.130.11; envelope-from=stefan@xsteve.at; helo=dd3624.kasserver.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 985661A713 X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0+gQy0BLPV0N * gnu/packages/web.scm (pup): New variable. --- gnu/packages/web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 96d5f8f0b3..01c3746c8a 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -47,6 +47,7 @@ ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020, 2021 Ryan Prior ;;; Copyright © 2020 Alexandru-Sergiu Marton +;;; Copyright © 2021 Stefan Reichör ;;; ;;; This file is part of GNU Guix. ;;; @@ -4869,6 +4870,33 @@ little effort, and the program to do so is often shorter and simpler than you'd expect.") (license (list license:expat license:cc-by3.0)))) +(define-public pup + (let ((revision "1") + (commit "681d7bb639334bf485476f5872c5bdab10931f9a")) + (package + (name "pup") + (version (git-version "0.4.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ericchiang/pup") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hx1k0qlc1bq6gg5d4yprn4d7kvqzagg6mi5mvb39zdq6c4y17vr")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/ericchiang/pup")) + (home-page "https://github.com/ericchiang/pup") + (synopsis "Parse HTML at the command line") + (description + "@command{pup} is a command line tool for processing HTML. It reads from stdin, +prints to stdout, and allows the user to filter parts of the page using CSS +selectors. Inspired by @command{jq}, @command{pup} aims to be a fast and +flexible way of exploring HTML from the terminal.") + (license license:expat)))) + (define-public uhttpmock (package (name "uhttpmock") -- 2.25.1