From 2d8d6ce330347bb51871a7dbf0d335000c4d1d3c Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 19 Mar 2026 08:10:18 +0100 Subject: gnu: Add python-tinyhtml5. * gnu/packages/python-web.scm (python-tinyhtml5): New variable. Change-Id: Ia49ee902abf3b41be9232d24c1391d562539d43c --- gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6c73e2488b1..7e914866df3 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -9416,6 +9416,32 @@ grammar of CSS but doesn’t know specific rules, properties or values supported in various CSS modules.") (license license:bsd-3))) +(define-public python-tinyhtml5 + (package + (name "python-tinyhtml5") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CourtBouillon/tinyhtml5") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q8z2ym2q6083ky0f9vwf73k3gimffnbfwlpmd69bp6anc4fa81x")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-webencodings)) + (native-inputs + (list python-flit-core + python-pytest)) + (home-page "https://github.com/CourtBouillon/tinyhtml5") + (synopsis "Small HTML parser based on the WHATWG HTML specification") + (description "This Python module is a HTML5 parser that transforms a +possibly malformed HTML document into an ElementTree tree. This module is a +simplified fork of html5lib.") + (license license:expat))) + (define-public python-cssselect2 (package (name "python-cssselect2") -- cgit v1.3