mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 01:00:33 -04:00
28 lines
676 B
Makefile
28 lines
676 B
Makefile
# Created by: jessekempf@gmail.com
|
|
|
|
PORTNAME= mock
|
|
PORTVERSION= 3.0.5
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Rolling backport of unittest.mock for all Pythons
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_GITHUB= yes # tests not packages in PyPI sdist
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
GH_ACCOUNT= testing-cabal
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts=
|
|
|
|
.include <bsd.port.mk>
|