blob: 3eac90983f3f41cefcba9d0c4c33e6fd22f9be99 (
plain)
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
37
38
39
40
41
42
43
44
|
# $FreeBSD$
PORTNAME= flask-restplus
PORTVERSION= 0.8.6
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 08
MAINTAINER= andrej@ebert.su
COMMENT= Extension for Flask that adds support for quickly building REST APIs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask-RESTful>=0.3.2:www/py-flask-restful \
${PYTHON_PKGNAMEPREFIX}six>=1.3.0:devel/py-six \
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
${PYTHON_PKGNAMEPREFIX}aniso8601>=0.82:devel/py-aniso8601
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}flask-restplus
PORTSCOUT= limit:^0\.8
USE_GITHUB= yes
GH_ACCOUNT= noirbizarre
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
.endif
do-test:
@${RM} -fr ${TEST_WRKSRC}/build/lib/tests
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
.include <bsd.port.post.mk>
|