diff --git a/devel/py-pytest-html/Makefile b/devel/py-pytest-html/Makefile
index 7f33ff61762d..2d86a632f903 100644
--- a/devel/py-pytest-html/Makefile
+++ b/devel/py-pytest-html/Makefile
@@ -1,30 +1,30 @@
PORTNAME= pytest-html
-PORTVERSION= 4.1.1
+PORTVERSION= 4.2.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}
MAINTAINER= matthew@FreeBSD.org
COMMENT= Pytest plugin for generating html reports
WWW= https://github.com/pytest-dev/pytest-html
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.3:devel/py-hatch-vcs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>=1.13:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=7.0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-metadata>=2.0:devel/py-pytest-metadata@${PY_FLAVOR}
# Note: Running the tests requires being able to spin up a docker container,
# See https://pytest-html.readthedocs.io/en/latest/development.html#running-tests
# This is unfortunately not possible on FreeBSD.
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
.include
diff --git a/devel/py-pytest-html/distinfo b/devel/py-pytest-html/distinfo
index 0a14bd0c74a3..fa39936cf1f6 100644
--- a/devel/py-pytest-html/distinfo
+++ b/devel/py-pytest-html/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1740237617
-SHA256 (pytest_html-4.1.1.tar.gz) = 70a01e8ae5800f4a074b56a4cb1025c8f4f9b038bba5fe31e3c98eb996686f07
-SIZE (pytest_html-4.1.1.tar.gz) = 150773
+TIMESTAMP = 1769024616
+SHA256 (pytest_html-4.2.0.tar.gz) = b6a88cba507500d8709959201e2e757d3941e859fd17cfd4ed87b16fc0c67912
+SIZE (pytest_html-4.2.0.tar.gz) = 108634