blob: c3b2ec7ee803c06d1ecf61cf6d6984d6363260a1 (
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
|
# $FreeBSD$
PORTNAME= treq
PORTVERSION= 17.8.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= asomers@FreeBSD.org
COMMENT= Requests-like API built on top of twisted.web's Agent
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs \
${PYTHON_PKGNAMEPREFIX}twisted>=16.4.0:devel/py-twisted \
${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six \
${PYTHON_PKGNAMEPREFIX}requests>=2.1.0:www/py-requests
# Depend directly on twisted[tls] dependencies
# As Twisted port may not (optionally) install them
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>=16.0.0:security/py-openssl \
${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity \
${PYTHON_PKGNAMEPREFIX}idna>=2.4:dns/py-idna
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock
USES= python:2.7+ # Actually 2.7+,3.3+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m twisted.trial treq
.include <bsd.port.mk>
|