Lines 1-12
Link Here
|
1 |
PORTNAME= pytest-mock |
1 |
PORTNAME= pytest-mock |
2 |
PORTVERSION= 1.10.4 |
2 |
DISTVERSION= 3.10.0 |
3 |
CATEGORIES= devel python |
3 |
CATEGORIES= devel python |
4 |
MASTER_SITES= PYPI |
4 |
MASTER_SITES= PYPI |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
|
6 |
|
7 |
PATCH_SITES= https://github.com/pytest-dev/${PORTNAME}/commit/ |
|
|
8 |
PATCHFILES= b3badafebedea3605c90eb22a68adff2885a8bb0.patch:-p1 |
9 |
|
10 |
MAINTAINER= olgeni@FreeBSD.org |
7 |
MAINTAINER= olgeni@FreeBSD.org |
11 |
COMMENT= Thin wrapper around the mock package for easier use with py.test |
8 |
COMMENT= Thin wrapper around the mock package for easier use with py.test |
12 |
WWW= https://github.com/pytest-dev/pytest-mock/ |
9 |
WWW= https://github.com/pytest-dev/pytest-mock/ |
Lines 15-28
LICENSE= MIT
Link Here
|
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
16 |
|
13 |
|
17 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} |
14 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} |
18 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR} |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=5.0:devel/py-pytest@${PY_FLAVOR} |
19 |
|
16 |
|
20 |
USES= python:3.6+ |
17 |
USES= python:3.7+ |
21 |
USE_PYTHON= autoplist concurrent distutils |
18 |
USE_PYTHON= autoplist concurrent distutils pytest # 6 tests fail, see https://github.com/pytest-dev/pytest-mock/issues/340 |
22 |
|
19 |
|
23 |
NO_ARCH= yes |
20 |
NO_ARCH= yes |
24 |
|
21 |
|
25 |
do-test: |
22 |
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
|
|
23 |
|
24 |
xdo-test: |
26 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py |
25 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py |
27 |
|
26 |
|
28 |
.include <bsd.port.mk> |
27 |
.include <bsd.port.mk> |