Index: www/py-jwt/Makefile =================================================================== --- www/py-jwt/Makefile +++ www/py-jwt/Makefile @@ -0,0 +1,14 @@ +PORTNAME= jwt +PORTVERSION= 0.2.1 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= wblock@FreeBSD.org +COMMENT= JSON Web Token implementation in Python + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes + +.include Index: www/py-jwt/distinfo =================================================================== --- www/py-jwt/distinfo +++ www/py-jwt/distinfo @@ -0,0 +1,2 @@ +SHA256 (jwt-0.2.1.tar.gz) = 121eeb4f0c117a4c7489e2e72ccb01456cef5b3242544e8604f2474db38142bb +SIZE (jwt-0.2.1.tar.gz) = 11261 Index: www/py-jwt/files/patch-jwt__jws.py =================================================================== --- www/py-jwt/files/patch-jwt__jws.py +++ www/py-jwt/files/patch-jwt__jws.py @@ -0,0 +1,29 @@ +--- ./jwt/jws.py.orig 2014-07-25 16:35:23.000000000 -0600 ++++ ./jwt/jws.py 2014-07-25 16:36:04.000000000 -0600 +@@ -41,7 +41,7 @@ + try: + return self.REGISTRY[alg] + except KeyError as why: +- raise UnsupportedAlgorithm(alg) from why ++ raise UnsupportedAlgorithm(alg) + + def get_keys(self, alg, kid=None, needs_private=False): + if alg.startswith('HS'): +@@ -80,7 +80,7 @@ + encoded_payload, encoded_signature = rest.split('.') + signature = b64_decode(encoded_signature) + except ValueError as why: +- raise MalformedJWT() from why ++ raise MalformedJWT() + else: + msg = self._signing_message(encoded_header, encoded_payload) + +@@ -114,7 +114,7 @@ + encoded_payload, _ = rest.split('.') + return b64_decode(encoded_payload) + except ValueError as why: +- raise MalformedJWT() from why ++ raise MalformedJWT() + + @classmethod + def register(cls, alg): Index: www/py-jwt/files/patch-jwt__jwt.py =================================================================== --- www/py-jwt/files/patch-jwt__jwt.py +++ www/py-jwt/files/patch-jwt__jwt.py @@ -0,0 +1,11 @@ +--- ./jwt/jwt.py.orig 2014-07-25 16:35:34.000000000 -0600 ++++ ./jwt/jwt.py 2014-07-25 16:36:15.000000000 -0600 +@@ -49,7 +49,7 @@ + try: + impl = self._get_impl(headerobj['alg']) + except KeyError as why: +- raise MalformedJWT('\'alg\' is required') from why ++ raise MalformedJWT('\'alg\' is required') + + encoded_header = b64_encode(self._json_encode(headerobj)) + Index: www/py-jwt/pkg-descr =================================================================== --- www/py-jwt/pkg-descr +++ www/py-jwt/pkg-descr @@ -0,0 +1,3 @@ +A Python implementation of JSON Web Tokens. + +https://pypi.python.org/pypi/PyJWT