diff --git a/www/py-wsaccel/Makefile b/www/py-wsaccel/Makefile index 213ca0ba600b..68ecb5d2032f 100644 --- a/www/py-wsaccel/Makefile +++ b/www/py-wsaccel/Makefile @@ -1,23 +1,34 @@ PORTNAME= wsaccel DISTVERSION= 0.6.7 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= bofh@FreeBSD.org COMMENT= WebSocket Accelerator for ws4py and AutobahnPython WWW= https://github.com/methane/wsaccel LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE DEPRECATED= Upstream ceased development +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cython3>=3.0.11:lang/cython3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= autoplist distutils pytest +USE_PYTHON= autoplist pep517 pytest post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/utf8validator*.so ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/xormask*.so +do-test: + @(cd ${TEST_WRKSRC} && ${SETENVI} ${WRK_ENV} ${TEST_ENV} pytest \ + -k '${_PYTEST_FILTER_EXPRESSION}' \ + -v -rs -o addopts= \ + ${PYTEST_ARGS}) + .include