From owner-svn-ports-all@freebsd.org Fri Jan 8 04:44:18 2016 Return-Path: Delivered-To: svn-ports-all@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 51A8DA6616F; Fri, 8 Jan 2016 04:44:18 +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 141351410; Fri, 8 Jan 2016 04:44:18 +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 u084iHuv089578; Fri, 8 Jan 2016 04:44:17 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u084iGUd089572; Fri, 8 Jan 2016 04:44:16 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201601080444.u084iGUd089572@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 04:44:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405519 - in head/security: . py-pysaml2 py-pysaml2/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-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 04:44:18 -0000 Author: koobs Date: Fri Jan 8 04:44:16 2016 New Revision: 405519 URL: https://svnweb.freebsd.org/changeset/ports/405519 Log: [NEW] security/py-pysaml2: Python implementation of SAML Version 2 PySAML2 is a pure python implementation of SAML2. It contains all necessary pieces for building a SAML2 service provider or an identity provider. The distribution contains examples of both. Originally written to work in a WSGI environment there are extensions that allow you to use it with other frameworks. WWW: https://github.com/rohe/pysaml2 PR: 205914 Submitted by: Brendan Molloy Added: head/security/py-pysaml2/ head/security/py-pysaml2/Makefile (contents, props changed) head/security/py-pysaml2/distinfo (contents, props changed) head/security/py-pysaml2/files/ head/security/py-pysaml2/files/patch-tests_test__52__default__sign__alg.py (contents, props changed) head/security/py-pysaml2/files/patch-tests_test__84__entcat.py (contents, props changed) head/security/py-pysaml2/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Jan 8 04:42:45 2016 (r405518) +++ head/security/Makefile Fri Jan 8 04:44:16 2016 (r405519) @@ -856,6 +856,7 @@ SUBDIR += py-pyme SUBDIR += py-pynacl SUBDIR += py-pyptlib + SUBDIR += py-pysaml2 SUBDIR += py-pyscard SUBDIR += py-pysha3 SUBDIR += py-python-gnupg Added: head/security/py-pysaml2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysaml2/Makefile Fri Jan 8 04:44:16 2016 (r405519) @@ -0,0 +1,39 @@ +# Created by: Brendan Molloy +# $FreeBSD$ + +PORTNAME= pysaml2 +PORTVERSION= 4.0.1 +CATEGORIES= security devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= brendan+freebsd@bbqsrc.net +COMMENT= Python implementation of SAML Version 2 + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>0:${PORTSDIR}/devel/py-decorator \ + ${PYTHON_PKGNAMEPREFIX}requests>1.0.0:${PORTSDIR}/www/py-requests \ + ${PYTHON_PKGNAMEPREFIX}Paste>0:${PORTSDIR}/www/py-paste \ + ${PYTHON_PKGNAMEPREFIX}zope.interface>0:${PORTSDIR}/devel/py-zope.interface \ + ${PYTHON_PKGNAMEPREFIX}repoze.who>0:${PORTSDIR}/devel/py-repoze.who \ + ${PYTHON_PKGNAMEPREFIX}pycrypto>2.5:${PORTSDIR}/security/py-pycrypto \ + ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl \ + ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil \ + ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \ + xmlsec1:${PORTSDIR}/security/xmlsec1 +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock \ + ${PYTHON_PKGNAMEPREFIX}responses>0:${PORTSDIR}/devel/py-responses + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +do-test: + @(cd ${WRKSRC} && ${PYTHON_CMD} -m pytest) + +.include Added: head/security/py-pysaml2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysaml2/distinfo Fri Jan 8 04:44:16 2016 (r405519) @@ -0,0 +1,2 @@ +SHA256 (pysaml2-4.0.1.tar.gz) = 8bd010ceac7b0c29b7bd67bd5b7bc993f3975eae67f8c49b4bf89a8dc4e5a948 +SIZE (pysaml2-4.0.1.tar.gz) = 13656835 Added: head/security/py-pysaml2/files/patch-tests_test__52__default__sign__alg.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysaml2/files/patch-tests_test__52__default__sign__alg.py Fri Jan 8 04:44:16 2016 (r405519) @@ -0,0 +1,12 @@ +--- tests/test_52_default_sign_alg.py.orig 2015-12-23 21:15:07 UTC ++++ tests/test_52_default_sign_alg.py +@@ -8,7 +8,8 @@ from saml2.samlp import response_from_st + from saml2.server import Server + from saml2 import client + from saml2 import config +-from mock.mock import Mock, MagicMock ++# mock.mock seems to rely on pre-2.7 packaging ++from mock import Mock, MagicMock + import saml2.xmldsig as ds + + nid = NameID(name_qualifier="foo", format=NAMEID_FORMAT_TRANSIENT, Added: head/security/py-pysaml2/files/patch-tests_test__84__entcat.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysaml2/files/patch-tests_test__84__entcat.py Fri Jan 8 04:44:16 2016 (r405519) @@ -0,0 +1,12 @@ +--- tests/test_84_entcat.py.orig 2015-12-23 21:20:13 UTC ++++ tests/test_84_entcat.py +@@ -72,7 +72,8 @@ def test_entcat_filter(): + + mds = MetadataStore(ATTRCONV, sec_config, + disable_ssl_certificate_validation=True) +- _path = "testfed-metadata.xml" ++ # Incorrect path was being derived ++ _path = full_path("testfed-metadata.xml") + mds.imp( + {"local": [_path]}) + Added: head/security/py-pysaml2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysaml2/pkg-descr Fri Jan 8 04:44:16 2016 (r405519) @@ -0,0 +1,6 @@ +PySAML2 is a pure python implementation of SAML2. It contains all necessary +pieces for building a SAML2 service provider or an identity provider. The +distribution contains examples of both. Originally written to work in a WSGI +environment there are extensions that allow you to use it with other frameworks. + +WWW: https://github.com/rohe/pysaml2