freebsd-ports/net/py-pynsq/Makefile
Kubilay Kocak 493e765c37 net/py-pynsq: [NEW PORT] The official Python client library for NSQ
pynsq provides high-level nsq.Reader and nsq.Writer classes for building
consumers and producers and two low-level modules for both sync and async
communication over the NSQ Protocol (if you wanted to write your own
high-level functionality).

WWW: https://github.com/bitly/pynsq
2013-06-22 10:43:26 +00:00

41 lines
1,004 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= pynsq
PORTVERSION= 0.4.2
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Official Python client library for NSQ
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
.include <bsd.port.options.mk>
USE_GITHUB= yes
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
GH_ACCOUNT= bitly
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= 8dd5a49
post-patch:
${TOUCH} ${WRKSRC}/tests/__init__.py
.if ${PORT_OPTIONS:MTESTS}
BUILD_DEPENDS:= ${TEST_DEPENDS}
.endif
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>