diff --git a/devel/py-pytest-mock/Makefile b/devel/py-pytest-mock/Makefile index d58ae2d86f5a..6184befb2391 100644 --- a/devel/py-pytest-mock/Makefile +++ b/devel/py-pytest-mock/Makefile @@ -1,25 +1,27 @@ PORTNAME= pytest-mock -DISTVERSION= 3.10.0 -PORTREVISION= 1 +DISTVERSION= 3.15.1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} MAINTAINER= olgeni@FreeBSD.org COMMENT= Thin wrapper around the mock package for easier use with py.test WWW= https://github.com/pytest-dev/pytest-mock/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=5.0:devel/py-pytest@${PY_FLAVOR} - -USES= python -USE_PYTHON= autoplist concurrent distutils pytest # 6 tests fail, see https://github.com/pytest-dev/pytest-mock/issues/340 +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} +USES= pytest python:3.9+ +USE_PYTHON= autoplist concurrent pep517 +PYTEST_ARGS= --assert=plain NO_ARCH= yes -TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} - .include diff --git a/devel/py-pytest-mock/distinfo b/devel/py-pytest-mock/distinfo index 4d153a9441d9..b9db6ed427a6 100644 --- a/devel/py-pytest-mock/distinfo +++ b/devel/py-pytest-mock/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1675642720 -SHA256 (pytest-mock-3.10.0.tar.gz) = fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f -SIZE (pytest-mock-3.10.0.tar.gz) = 28384 +TIMESTAMP = 1778639819 +SHA256 (pytest_mock-3.15.1.tar.gz) = 1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f +SIZE (pytest_mock-3.15.1.tar.gz) = 34036 diff --git a/devel/py-pytest-mock/pkg-descr b/devel/py-pytest-mock/pkg-descr index 1500a21d307d..19042f606ce7 100644 --- a/devel/py-pytest-mock/pkg-descr +++ b/devel/py-pytest-mock/pkg-descr @@ -1 +1,2 @@ -Thin wrapper around the mock package for easier use with py.test. +This plugin provides a mocker fixture which is a thin-wrapper around the +patching API provided by the mock package.