mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
eabbfd75e3
PR: 213570 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= vcrpy
|
|
PORTVERSION= 1.7.4
|
|
DISTVERSIONPREFIX= v.
|
|
CATEGORIES= devel www python
|
|
#MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Automatically mock HTTP interactions to simplify and speed up testing
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
|
|
${PYTHON_PKGNAMEPREFIX}wrapt>0:devel/py-wrapt \
|
|
${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-localserver>0:devel/py-pytest-localserver
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= kevin1024
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 3300
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
|
|
${PYTHON_PKGNAMEPREFIX}contextlib2>0:devel/py-contextlib2
|
|
.endif
|
|
|
|
post-patch:
|
|
${FIND} ${WRKSRC} -name __pycache__ -type d -exec ${RM} -r {} +
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|