Subject: [bug#70222] [PATCH 08/13] gnu: Add perl-html-tokeparser-simple.

From: Steve George <[email-masked]>
Date: Fri, 5 Apr 2024 21:10:15 +0100

* gnu/packages/web.scm (perl-html-tokeparser-simple): New variable.

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

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 9ad23a26dda..f2075ea0a8f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3575,6 +3575,29 @@ (define-public perl-html-tableextract
 in tables within an HTML document, either as text or encoded element trees.")
     (license license:perl-license)))
 
+(define-public perl-html-tokeparser-simple
+  (package
+    (name "perl-html-tokeparser-simple")
+    (version "3.16")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/O/OV/OVID/HTML-TokeParser-Simple-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "17aa1v62sp8ycxcicwhankmj4brs6nnfclk9z7mf1rird1f164gd"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build))
+    (propagated-inputs (list perl-html-parser
+                             perl-html-tagset
+                             perl-sub-override))
+    (home-page "https://metacpan.org/release/HTML-TokeParser-Simple")
+    (synopsis "Easy to use parsing interface")
+    (description "Provides @code{HTML::TokeParser::Simple}, a simpler interface
+to @code{HTML::TokeParser} for parsing HTML.")
+    (license license:perl-license)))
+
 (define-public perl-html-tree
   (package
     (name "perl-html-tree")
-- 
2.41.0