Subject: [PATCH v2 04/14] gnu: Add perl-html-selector-xpath.

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

From: Steve George <[email-masked]>

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

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

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index a71a0e07a3..b311fa505b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3535,6 +3535,27 @@ (define-public perl-html-lint
 syntactic legitmacy.")
     (license license:artistic2.0)))
 
+(define-public perl-html-selector-xpath
+  (package
+    (name "perl-html-selector-xpath")
+    (version "0.28")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/C/CO/CORION/HTML-Selector-XPath-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "03wdwnrf0bvr2dw01njnz3a9mw2kl7ad7krh25j3vkyj7vq1f9s3"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-test-base
+                         perl-test-pod))
+    (home-page "https://metacpan.org/release/HTML-Selector-XPath")
+    (synopsis "CSS Selector to XPath compiler")
+    (description "@code{HTML::Selector::XPath} is a Perl module for parsing
+and scraping XML/HTML documents using XPath expressions.")
+    (license license:perl-license)))
+
 (define-public perl-html-tableextract
   (package
     (name "perl-html-tableextract")
-- 
2.41.0