svn commit: r405519 - in head/security: . py-pysaml2 py-pysaml2/files

Kubilay Kocak koobs at FreeBSD.org
Fri Jan 8 04:44:18 UTC 2016


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 <brendan+freebsd at bbqsrc.net>

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 <brendan+freebsd at bbqsrc.net>
+# $FreeBSD$
+
+PORTNAME=	pysaml2
+PORTVERSION=	4.0.1
+CATEGORIES=	security devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	brendan+freebsd at 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 <bsd.port.mk>

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


More information about the svn-ports-head mailing list