freebsd-ports/net-im/py-slackclient/Makefile
Kubilay Kocak e32c1110bf net-im/py-slackclient: Update to 2.1.0
aiodns is (was) actually an optional dependency. Add an ASYNCDNS option
for now until upstream work out a good name for it [1]

Changelog:

  https://slack.dev/python-slackclient/changelog.html#v2-1-0-2019-07-01

Note: Missing from changelog, but also fixed:

https://github.com/slackapi/python-slackclient/issues/451

[1] https://github.com/slackapi/python-slackclient/issues/433

PR:		239462
Submitted by:	<wcarson.bugzilla disillusion.net>
MFH:		2019Q3 (blanket: bugfix release)
2019-08-19 12:16:35 +00:00

40 lines
999 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= slackclient
PORTVERSION= 2.1.0
DISTVERSIONPREFIX=v
CATEGORIES= net-im python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Slack API clients for Web API and RTM API
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>3.5.2:www/py-aiohttp@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.6+
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
OPTIONS_DEFINE= ASYNCDNS
OPTIONS_DEFAULT= ASYNCDNS
ASYNCDNS_DESC= Asyncronous DNS support
ASYNCDNS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiodns>1.0:dns/py-aiodns@${PY_FLAVOR}
# Does not currently include tests in sdist
GH_ACCOUNT= slackapi
GH_PROJECT= python-${PORTNAME}
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.mk>