summaryrefslogtreecommitdiff
path: root/security/py-oauthlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-oauthlib/Makefile')
-rw-r--r--security/py-oauthlib/Makefile38
1 files changed, 17 insertions, 21 deletions
diff --git a/security/py-oauthlib/Makefile b/security/py-oauthlib/Makefile
index 3e40a392348a..db4043c31e31 100644
--- a/security/py-oauthlib/Makefile
+++ b/security/py-oauthlib/Makefile
@@ -1,41 +1,37 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
PORTNAME= oauthlib
-PORTVERSION= 1.1.2
-PORTREVISION= 2
+PORTVERSION= 3.2.0
CATEGORIES= security net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
-COMMENT= RFC-compliant implementation of the OAuth request-signing logic
+COMMENT= Generic, spec-compliant, thorough implementation of the OAuth request-signing logic
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.0.0:www/py-pyjwt@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR}
-
-OPTIONS_DEFINE= RSA SIGNALS SIGNEDTOKEN
-OPTIONS_DEFAULT= RSA SIGNALS SIGNEDTOKEN
-
-RSA_DESC= Enable RSA Support
-SIGNALS_DESC= Enable signal support
-SIGNEDTOKEN_DESC= Support for Signed Token
-
-RSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
-SIGNALS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR}
-SIGNEDTOKEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.0.0:www/py-pyjwt@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=4.0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.6:devel/py-pytest-cov@${PY_FLAVOR}
USES= python:3.6+
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+OPTIONS_DEFINE= RSA SIGNALS SIGNEDTOKEN
+OPTIONS_DEFAULT=RSA SIGNALS SIGNEDTOKEN
+RSA_DESC= RSA support
+SIGNALS_DESC= Signal support
+SIGNEDTOKEN_DESC= Signed token support
+
+RSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=3.0.0:security/py-cryptography@${PY_FLAVOR}
+SIGNALS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>=1.4.0:devel/py-blinker@${PY_FLAVOR}
+SIGNEDTOKEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=3.0.0:security/py-cryptography@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyjwt>=2.0.0<3:www/py-pyjwt@${PY_FLAVOR}
+
do-test:
- @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+ cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.mk>