diff mbox series

[1/2] package/python-tinyhtml5: new package

Message ID 20241101221423.1303398-1-james.hilliard1@gmail.com
State Accepted
Headers show
Series [1/2] package/python-tinyhtml5: new package | expand

Commit Message

James Hilliard Nov. 1, 2024, 10:14 p.m. UTC
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/Config.in                              |  1 +
 package/python-tinyhtml5/Config.in             |  7 +++++++
 package/python-tinyhtml5/python-tinyhtml5.hash |  5 +++++
 package/python-tinyhtml5/python-tinyhtml5.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-tinyhtml5/Config.in
 create mode 100644 package/python-tinyhtml5/python-tinyhtml5.hash
 create mode 100644 package/python-tinyhtml5/python-tinyhtml5.mk
diff mbox series

Patch

diff --git a/package/Config.in b/package/Config.in
index 876b340a8a..15b35fb55d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1425,6 +1425,7 @@  menu "External python modules"
 	source "package/python-tftpy/Config.in"
 	source "package/python-thrift/Config.in"
 	source "package/python-tinycss2/Config.in"
+	source "package/python-tinyhtml5/Config.in"
 	source "package/python-tinyrpc/Config.in"
 	source "package/python-tomako/Config.in"
 	source "package/python-toml/Config.in"
diff --git a/package/python-tinyhtml5/Config.in b/package/python-tinyhtml5/Config.in
new file mode 100644
index 0000000000..3243d143e7
--- /dev/null
+++ b/package/python-tinyhtml5/Config.in
@@ -0,0 +1,7 @@ 
+config BR2_PACKAGE_PYTHON_TINYHTML5
+	bool "python-tinyhtml5"
+	select BR2_PACKAGE_PYTHON_WEBENCODINGS # runtime
+	help
+	  HTML parser based on the WHATWG HTML specification.
+
+	  https://github.com/CourtBouillon/tinyhtml5
diff --git a/package/python-tinyhtml5/python-tinyhtml5.hash b/package/python-tinyhtml5/python-tinyhtml5.hash
new file mode 100644
index 0000000000..55afa09597
--- /dev/null
+++ b/package/python-tinyhtml5/python-tinyhtml5.hash
@@ -0,0 +1,5 @@ 
+# md5, sha256 from https://pypi.org/pypi/tinyhtml5/json
+md5  c5fa2991d6d1ea65e923279c435b816e  tinyhtml5-2.0.0.tar.gz
+sha256  086f998833da24c300c414d9fe81d9b368fd04cb9d2596a008421cbc705fcfcc  tinyhtml5-2.0.0.tar.gz
+# Locally computed sha256 checksums
+sha256  16a39991619e92f18680932da2a9199fdf7d95df3ecaedc52ea06218aabafd6f  LICENSE
diff --git a/package/python-tinyhtml5/python-tinyhtml5.mk b/package/python-tinyhtml5/python-tinyhtml5.mk
new file mode 100644
index 0000000000..373ab8aa54
--- /dev/null
+++ b/package/python-tinyhtml5/python-tinyhtml5.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# python-tinyhtml5
+#
+################################################################################
+
+PYTHON_TINYHTML5_VERSION = 2.0.0
+PYTHON_TINYHTML5_SOURCE = tinyhtml5-$(PYTHON_TINYHTML5_VERSION).tar.gz
+PYTHON_TINYHTML5_SITE = https://files.pythonhosted.org/packages/fd/03/6111ed99e9bf7dfa1c30baeef0e0fb7e0bd387bd07f8e5b270776fe1de3f
+PYTHON_TINYHTML5_SETUP_TYPE = flit
+PYTHON_TINYHTML5_LICENSE = MIT
+PYTHON_TINYHTML5_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))