Subject: [PATCH v2 05/14] gnu: Add perl-html-treebuilder-xpath.

From: Julian Flake <[email-masked]>
Date: Fri, 26 Apr 2024 13:41:59 +0200

From: Steve George <[email-masked]>

* gnu/packages/web.scm (perl-html-treebuilder-xpath): New variable.

Change-Id: I4069eae36a8c49a507e89c18fed90e0e53fdde4d
---
 gnu/packages/web.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b311fa505b..28ca51416a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3671,6 +3671,26 @@ (define-public perl-html-template
 you to separate design from the data.")
     (license license:perl-license)))
 
+(define-public perl-html-treebuilder-xpath
+  (package
+    (name "perl-html-treebuilder-xpath")
+    (version "0.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/M/MI/MIROD/HTML-TreeBuilder-XPath-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "1wx4i1scng20n405fp3a4vrwvvq9bvbmg977wnd5j2ja8jrbvsr5"))))
+    (build-system perl-build-system)
+    (propagated-inputs (list perl-html-tree perl-xml-xpathengine))
+    (home-page "https://metacpan.org/release/HTML-TreeBuilder-XPath")
+    (synopsis "XPath support for @code{HTML::TreeBuilder}")
+    (description "This module implements @code{HTML::TreeBuilder::XPath} for
+@code{HTML::TreeBuilder}, making it easy to parse documents using XPath.")
+    (license license:perl-license)))
+
 (define-public perl-http-body
   (package
     (name "perl-http-body")
-- 
2.41.0