From e175175a11ea0ac5d036d13b341f99dbb4765975 Mon Sep 17 00:00:00 2001 From: Steve George Date: Fri, 26 Apr 2024 13:42:03 +0200 Subject: [PATCH] gnu: Add perl-html-tokeparser-simple. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/web.scm (perl-html-tokeparser-simple): New variable. Change-Id: If779dbe29de05697d87143b38d986d5ff7fa2c8f Signed-off-by: Ludovic Courtès --- gnu/packages/web.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 80f281b4e6..c9bf56bc02 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -3578,6 +3578,29 @@ and scraping XML/HTML documents using XPath expressions.") 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")