aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/py-slackclient/Makefile
blob: 175bf12c9eed47242dafae3712313fbc675490ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$

PORTNAME=   slackclient
PORTVERSION=    1.3.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

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}websocket-client>=0.35:www/py-websocket-client@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}requests>=2.11:www/py-requests@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}six>=1.10:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR}

USES=       python

USE_GITHUB= yes
USE_PYTHON= autoplist distutils

# 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

.include <bsd.port.mk>