# Created by: Kubilay Kocak # $FreeBSD$ PORTNAME= pynsq PORTVERSION= 0.5.1 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= net python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org COMMENT= Official Python client library for NSQ LICENSE= MIT RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>0:${PORTSDIR}/www/py-tornado TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>0:${PORTSDIR}/www/py-tornado \ ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock OPTIONS_DEFINE= TESTS TESTS_DESC= Install tools to run test suite OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options USES= python USE_PYTHON= distutils autoplist USE_GITHUB= yes GH_ACCOUNT= bitly .include .if ${PORT_OPTIONS:MTESTS} BUILD_DEPENDS:= ${TEST_DEPENDS} .endif regression-test: build @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test .include