summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2026-03-19 08:10:18 +0100
committerCayetano Santos <csantosb@inventati.org>2026-03-19 08:21:26 +0100
commit2d8d6ce330347bb51871a7dbf0d335000c4d1d3c (patch)
tree455cee443e6751fc49894ba038595070d7f2de35 /gnu/packages/python-web.scm
parentfd9d0b3530485305033cfea37e0dc96f85209011 (diff)
gnu: Add python-tinyhtml5.
* gnu/packages/python-web.scm (python-tinyhtml5): New variable. Change-Id: Ia49ee902abf3b41be9232d24c1391d562539d43c
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm26
1 files changed, 26 insertions, 0 deletions
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")