git: 7ff583242e84 - main - www/py-htmltools: New port: Tools for HTML generation and output
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jun 2026 04:22:46 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7ff583242e84d4bd6072b3d9ebe6db47d2050ed0
commit 7ff583242e84d4bd6072b3d9ebe6db47d2050ed0
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-10 03:40:14 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-10 04:22:43 +0000
www/py-htmltools: New port: Tools for HTML generation and output
---
www/Makefile | 1 +
www/py-htmltools/Makefile | 30 ++++++++++++++++++++++++++++++
www/py-htmltools/distinfo | 3 +++
www/py-htmltools/pkg-descr | 6 ++++++
4 files changed, 40 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index bf4742a7e825..b3c073d04dff 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1842,6 +1842,7 @@
SUBDIR += py-html5lib-modern
SUBDIR += py-html5rdf
SUBDIR += py-htmldate
+ SUBDIR += py-htmltools
SUBDIR += py-httmock
SUBDIR += py-http-parser
SUBDIR += py-http-sf
diff --git a/www/py-htmltools/Makefile b/www/py-htmltools/Makefile
new file mode 100644
index 000000000000..62e232cc3a42
--- /dev/null
+++ b/www/py-htmltools/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= htmltools
+DISTVERSION= 0.7.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Tools for HTML generation and output
+WWW= https://github.com/rstudio/py-htmltools
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>=20.9:devel/py-packaging@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}syrupy>=4.6.0:devel/py-syrupy@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKDIR= ${WRKSRC}/tests
+
+NO_ARCH= yes
+
+# tests as of 0.7.0: 101 passed, 4 failed (missing test data files in sdist)
+
+.include <bsd.port.mk>
diff --git a/www/py-htmltools/distinfo b/www/py-htmltools/distinfo
new file mode 100644
index 000000000000..c2d91cbcf92b
--- /dev/null
+++ b/www/py-htmltools/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1781061933
+SHA256 (htmltools-0.7.0.tar.gz) = b95f922b7038f1b935ce24691ae74cb1ab9526d9c9cf1c2e2f329c38ef227a10
+SIZE (htmltools-0.7.0.tar.gz) = 105807
diff --git a/www/py-htmltools/pkg-descr b/www/py-htmltools/pkg-descr
new file mode 100644
index 000000000000..e7ab4827d2d1
--- /dev/null
+++ b/www/py-htmltools/pkg-descr
@@ -0,0 +1,6 @@
+Tools for HTML generation and output.
+
+This package provides a set of tools to generate, manipulate, and
+output HTML content in Python. It is part of the Shiny for Python
+ecosystem, providing foundation HTML tag classes and rendering
+utilities.