diff --git a/textproc/py-htmlmin2/Makefile b/textproc/py-htmlmin2/Makefile
index 809dbd1bdaef..c3b85a145c1a 100644
--- a/textproc/py-htmlmin2/Makefile
+++ b/textproc/py-htmlmin2/Makefile
@@ -1,5 +1,6 @@
PORTNAME= htmlmin2
PORTVERSION= 0.1.13
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= textproc python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +13,11 @@ WWW= https://htmlmin.readthedocs.io/en/latest/ \
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes