freebsd-ports/devel/py-freezegun/Makefile
Kubilay Kocak f7fa8b557c [NEW] devel/py-freezegun: Let your Python tests travel through time
FreezeGun is a library that allows your python tests to travel through time
by mocking the datetime module.

WWW: https://github.com/spulec/freezegun
2015-06-02 10:20:56 +00:00

27 lines
759 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= freezegun
PORTVERSION= 0.3.3
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Let your Python tests travel through time
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \
${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:${PORTSDIR}/devel/py-dateutil
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
USES= python
USE_PYTHON= autoplist distutils
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} nosetests
.include <bsd.port.mk>