From owner-svn-ports-head@freebsd.org Fri Jan 8 05:03:41 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DFE5A66B7F; Fri, 8 Jan 2016 05:03:41 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CB3912A3; Fri, 8 Jan 2016 05:03:41 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0853eVL096519; Fri, 8 Jan 2016 05:03:40 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0853dxF096514; Fri, 8 Jan 2016 05:03:39 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201601080503.u0853dxF096514@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Fri, 8 Jan 2016 05:03:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405526 - in head/security: . py-pymacaroons-pynacl py-pymacaroons-pynacl/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 05:03:41 -0000 Author: koobs Date: Fri Jan 8 05:03:39 2016 New Revision: 405526 URL: https://svnweb.freebsd.org/changeset/ports/405526 Log: [NEW] security/py-pymacaroons-pynacl: Macaroon library for Python Macaroons, like cookies, are a form of bearer credential. Unlike opaque tokens, macaroons embed caveats that define specific authorization requirements for the target service, the service that issued the root macaroon and which is capable of verifying the integrity of macaroons it receives. WWW: https://github.com/matrix-org/pymacaroons PR: 205914 Submitted by: Brendan Molloy Added: head/security/py-pymacaroons-pynacl/ head/security/py-pymacaroons-pynacl/Makefile (contents, props changed) head/security/py-pymacaroons-pynacl/distinfo (contents, props changed) head/security/py-pymacaroons-pynacl/files/ head/security/py-pymacaroons-pynacl/files/patch-tests_functional__tests_functional__tests.py (contents, props changed) head/security/py-pymacaroons-pynacl/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Jan 8 05:00:11 2016 (r405525) +++ head/security/Makefile Fri Jan 8 05:03:39 2016 (r405526) @@ -853,6 +853,7 @@ SUBDIR += py-pydeep SUBDIR += py-pyelliptic SUBDIR += py-pylibacl + SUBDIR += py-pymacaroons-pynacl SUBDIR += py-pyme SUBDIR += py-pynacl SUBDIR += py-pyptlib Added: head/security/py-pymacaroons-pynacl/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pymacaroons-pynacl/Makefile Fri Jan 8 05:03:39 2016 (r405526) @@ -0,0 +1,32 @@ +# Created by: Brendan Molloy +# $FreeBSD$ + +PORTNAME= pymacaroons-pynacl +PORTVERSION= 0.9.3 +DISTVERSIONPREFIX= v +CATEGORIES= security devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= brendan+freebsd@bbqsrc.net +COMMENT= Macaroon library for Python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pynacl>=0.3.0:${PORTSDIR}/security/py-pynacl \ + ${PYTHON_PKGNAMEPREFIX}six>=1.8.0:${PORTSDIR}/devel/py-six +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:${PORTSDIR}/devel/py-hypothesis \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock \ + ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist distutils + +GH_ACCOUNT= matrix-org +GH_PROJECT= pymacaroons + +do-test: + @(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} nosetests) + +.include Added: head/security/py-pymacaroons-pynacl/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pymacaroons-pynacl/distinfo Fri Jan 8 05:03:39 2016 (r405526) @@ -0,0 +1,2 @@ +SHA256 (matrix-org-pymacaroons-v0.9.3_GH0.tar.gz) = 871399c4dc1dfab7a435df2d5f2954cbba51d275ca2e93a96abb8b35d348fe5a +SIZE (matrix-org-pymacaroons-v0.9.3_GH0.tar.gz) = 20872 Added: head/security/py-pymacaroons-pynacl/files/patch-tests_functional__tests_functional__tests.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pymacaroons-pynacl/files/patch-tests_functional__tests_functional__tests.py Fri Jan 8 05:03:39 2016 (r405526) @@ -0,0 +1,30 @@ +--- tests/functional_tests/functional_tests.py.orig 2016-01-04 04:05:59 UTC ++++ tests/functional_tests/functional_tests.py +@@ -3,6 +3,7 @@ import json + + from mock import * + from nose.tools import * ++from unittest import skipUnless + + import nacl.bindings + +@@ -11,6 +12,11 @@ from pymacaroons.serializers import * + from pymacaroons.exceptions import * + from pymacaroons.utils import * + ++# A test desires libnacl, but we don't need it. ++try: ++ import libnacl ++except: ++ pass + + ZERO_NONCE = truncate_or_pad( + b'\0', size=nacl.bindings.crypto_secretbox_NONCEBYTES) +@@ -297,6 +303,7 @@ never use the same secret twice', + ) + assert_true(verified) + ++ @skipUnless('libnacl' in globals(), 'libnacl imported already') + @patch('libnacl.secret.libnacl.utils.rand_nonce') + def test_inspect(self, rand_nonce): + # use a fixed nonce to ensure the same signature Added: head/security/py-pymacaroons-pynacl/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pymacaroons-pynacl/pkg-descr Fri Jan 8 05:03:39 2016 (r405526) @@ -0,0 +1,6 @@ +Macaroons, like cookies, are a form of bearer credential. Unlike opaque tokens, +macaroons embed caveats that define specific authorization requirements for the +target service, the service that issued the root macaroon and which is capable +of verifying the integrity of macaroons it receives. + +WWW: https://github.com/matrix-org/pymacaroons