diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-29 23:28:50 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-04 21:03:15 +0000 |
| commit | 40a04ac1150313ec3e7976fbe738d6d91192fedd (patch) | |
| tree | dcce753a7c2e5dc6e040b835ff5334bcc4b11c00 | |
| parent | 04b6a95b9c2426b9a50f2e6de354877cb56ac8da (diff) | |
gnu: python-html5-parser: Update to 0.4.12.
* gnu/packages/python-web.scm (python-html5-parser): Update to 0.4.12.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: Ife9144adbeb1f4ad5711f7bce9066a4336141bf2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-web.scm | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 67d714cffda..2cabd2299c4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4015,34 +4015,34 @@ and written in Python.") (define-public python-html5-parser (package (name "python-html5-parser") - (version "0.4.10") - (source (origin - (method url-fetch) - (uri (pypi-uri "html5-parser" version)) - (sha256 - (base32 - "195wgxls3df7djry9cz3p2k9644l6bfd66fczbaw55fsq0c48agr")))) - (build-system python-build-system) + (version "0.4.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kovidgoyal/html5-parser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0axrz2x67nhsh3kijy68wwy5hx8h8418d8g2qz6f3pyxix7gw2fi")))) + (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-before 'build 'set-configure-flags (lambda _ - (setenv "CFLAGS" - "-Wno-error=implicit-function-declaration")))))) - (native-inputs - (list pkg-config)) - (inputs - (list libxml2)) - (propagated-inputs - (list python-lxml python-beautifulsoup4 python-chardet)) + (setenv "CFLAGS" "-Wno-error=implicit-function-declaration")))))) + (native-inputs (list pkg-config python-setuptools)) + (inputs (list libxml2)) + (propagated-inputs (list python-lxml python-beautifulsoup4 python-chardet)) (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.") + (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.") ;; src/as-python-tree.[c|h] are licensed GPL3. The other files ;; indicate ASL2.0, including the LICENSE file for the whole project. (license (list license:asl2.0 license:gpl3)))) |
