From: Marius Bakke <mbakke@fastmail.com>
To: Roel Janssen <roel@gnu.org>, 28235@debbugs.gnu.org
Subject: [bug#28235] [PATCH 2/3] gnu: Add python-html5-parser, python2-html5-parser
Date: Sat, 02 Sep 2017 13:30:11 +0200 [thread overview]
Message-ID: <874lsll4n0.fsf@fastmail.com> (raw)
In-Reply-To: <8760dbtsf0.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]
Roel Janssen <roel@gnu.org> writes:
> * gnu/packages/python.scm (python-html5-parser): New variable.
> (python2-html5-parser: New variable.
> ---
> gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 9bf46fb6f..8629228db 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -5868,6 +5868,35 @@ and written in Python.")
> (define-public python2-html5lib-0.9
> (package-with-python2 python-html5lib-0.9))
>
> +(define-public python-html5-parser
> + (package
> + (name "python-html5-parser")
> + (version "0.4.4")
> + (source (origin
> + (method url-fetch)
> + (uri (pypi-uri "html5-parser" version))
> + (sha256
> + (base32
> + "1d8sxhl41ffh7qlk7wlsy17xw6slzx5v1yna9s72wx5qrpaa3wxr"))))
> + (build-system python-build-system)
> + (native-inputs
> + `(("pkg-config" ,pkg-config)))
> + (inputs
> + `(("libxml2" ,libxml2)))
> + (propagated-inputs
> + `(("python-lxml" ,python-lxml)
> + ("python-beautifulsoup4" ,python-beautifulsoup4)))
> + (home-page "https://html5-parser.readthedocs.io")
> + (synopsis "Fast C-based HTML5 parsing for Python")
> + (description "This package provides a fast implementation of the HTML5
> +parsing spec for Python. Parsing is done in C using a variant of the gumbo
> +parser. The gumbo parse tree is then transformed into an lxml tree, also in
> +C, yielding parse times that can be a thirtieth of the html5lib parse times.")
> + (license license:asl2.0)))
The files 'src/as-libxml.[ch]' are GPL3. Everything else in this series LGTM!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-09-02 11:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-25 18:22 [bug#28235] [PATCH] Update calibre to 3.6.0 Roel Janssen
2017-08-25 18:25 ` [bug#28235] [PATCH 1/3] gnu: Update python-lxml to 3.8.0 Roel Janssen
2017-08-25 18:26 ` [bug#28235] [PATCH 2/3] gnu: Add python-html5-parser, python2-html5-parser Roel Janssen
2017-09-02 11:30 ` Marius Bakke [this message]
2017-09-06 10:32 ` Roel Janssen
2017-09-06 10:45 ` bug#28235: " Roel Janssen
2017-08-25 18:27 ` [bug#28235] [PATCH 3/3] gnu: Update calibre to 3.6.0 Roel Janssen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lsll4n0.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=28235@debbugs.gnu.org \
--cc=roel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).