Subject: bug#46543: closed (Re: bug#46543: [PATCH] gnu: Add pup.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 16 Feb 2021 08:14:02 +0000

Your bug report

#46543: [PATCH] gnu: Add pup.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
46543: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46543
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#46543: [PATCH] gnu: Add pup.
From: 宋文武 <[email-masked]>
To: Stefan Reichör <[email-masked]>
Cc: [email-masked]
Date: Tue, 16 Feb 2021 16:14:55 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Stefan Reichör <[email-masked]> writes:

> * gnu/packages/web.scm (pup): New variable.

Pushed, thank you!

Subject: [PATCH] gnu: Add pup.
From: Stefan Reichör <[email-masked]>
To: [email-masked]
Cc: Stefan Reichör <[email-masked]>
Date: Mon, 15 Feb 2021 20:54:42 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
 ;;; Copyright © 2020, 2021 Ryan Prior <[email-masked]>
 ;;; Copyright © 2020 Alexandru-Sergiu Marton <[email-masked]>
+;;; Copyright © 2021 Stefan Reichör <[email-masked]>
 ;;;
 ;;; 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