diff --git a/devel/py-pytest-mock/Makefile b/devel/py-pytest-mock/Makefile index b3d7a3517b465..91d4b50041d2b 100644 --- a/devel/py-pytest-mock/Makefile +++ b/devel/py-pytest-mock/Makefile @@ -1,12 +1,9 @@ PORTNAME= pytest-mock -PORTVERSION= 1.10.4 +DISTVERSION= 3.10.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -PATCH_SITES= https://github.com/pytest-dev/${PORTNAME}/commit/ -PATCHFILES= b3badafebedea3605c90eb22a68adff2885a8bb0.patch:-p1 - 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/ @@ -15,14 +12,13 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=5.0:devel/py-pytest@${PY_FLAVOR} -USES= python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils pytest # 6 tests fail, see https://github.com/pytest-dev/pytest-mock/issues/340 NO_ARCH= yes -do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include diff --git a/devel/py-pytest-mock/distinfo b/devel/py-pytest-mock/distinfo index 1edf1fe991bcd..4d153a9441d98 100644 --- a/devel/py-pytest-mock/distinfo +++ b/devel/py-pytest-mock/distinfo @@ -1,5 +1,3 @@ -TIMESTAMP = 1557059422 -SHA256 (pytest-mock-1.10.4.tar.gz) = 5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568 -SIZE (pytest-mock-1.10.4.tar.gz) = 18790 -SHA256 (b3badafebedea3605c90eb22a68adff2885a8bb0.patch) = 8c6d1028175b1a524cbcb1df3aeaa725fed9a1aa3ad0499a242ac65b65e855e0 -SIZE (b3badafebedea3605c90eb22a68adff2885a8bb0.patch) = 1667 +TIMESTAMP = 1675642720 +SHA256 (pytest-mock-3.10.0.tar.gz) = fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f +SIZE (pytest-mock-3.10.0.tar.gz) = 28384