unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59111] [PATCH 0/2] Add htmlq.
@ 2022-11-07 20:04 Greg Hogan
  2022-11-07 20:05 ` [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8 Greg Hogan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Greg Hogan @ 2022-11-07 20:04 UTC (permalink / raw)
  To: 59111; +Cc: Greg Hogan

Greg Hogan (2):
  gnu: Add rust-kuchiki-0.8.
  gnu: Add htmlq.

 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 gnu/packages/rust-apps.scm | 25 +++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

-- 
2.38.0





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8.
  2022-11-07 20:04 [bug#59111] [PATCH 0/2] Add htmlq Greg Hogan
@ 2022-11-07 20:05 ` Greg Hogan
  2022-11-07 20:05 ` [bug#59111] [PATCH 2/2] gnu: Add htmlq Greg Hogan
  2022-12-08 21:58 ` bug#59111: [PATCH 0/2] " Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Hogan @ 2022-11-07 20:05 UTC (permalink / raw)
  To: 59111; +Cc: Greg Hogan

* 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 <e.lepikhin@corp.mail.ru>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
 ;;; Copyright © 2022 ( <paren@disroot.org>
+;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
 ;;;
 ;;; 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")
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#59111] [PATCH 2/2] gnu: Add htmlq.
  2022-11-07 20:04 [bug#59111] [PATCH 0/2] Add htmlq Greg Hogan
  2022-11-07 20:05 ` [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8 Greg Hogan
@ 2022-11-07 20:05 ` Greg Hogan
  2022-12-08 21:58 ` bug#59111: [PATCH 0/2] " Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Hogan @ 2022-11-07 20:05 UTC (permalink / raw)
  To: 59111; +Cc: Greg Hogan

* 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 <foo.dogsquared@gmail.com>
 ;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
+;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
 ;;;
 ;;; 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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#59111: [PATCH 0/2] Add htmlq.
  2022-11-07 20:04 [bug#59111] [PATCH 0/2] Add htmlq Greg Hogan
  2022-11-07 20:05 ` [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8 Greg Hogan
  2022-11-07 20:05 ` [bug#59111] [PATCH 2/2] gnu: Add htmlq Greg Hogan
@ 2022-12-08 21:58 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-12-08 21:58 UTC (permalink / raw)
  To: Greg Hogan; +Cc: 59111-done

Hi,

Greg Hogan <code@greghogan.com> skribis:

>   gnu: Add rust-kuchiki-0.8.
>   gnu: Add htmlq.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 20:04 [bug#59111] [PATCH 0/2] Add htmlq Greg Hogan
2022-11-07 20:05 ` [bug#59111] [PATCH 1/2] gnu: Add rust-kuchiki-0.8 Greg Hogan
2022-11-07 20:05 ` [bug#59111] [PATCH 2/2] gnu: Add htmlq Greg Hogan
2022-12-08 21:58 ` bug#59111: [PATCH 0/2] " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).