mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
Update to 1.16
- Change MASTER_SITES to CHEESESHOP - Update COMMENT - Update LICENSE - Add PyPI as primary WWW Changes: https://github.com/pysimplesoap/pysimplesoap/releases https://github.com/pysimplesoap/pysimplesoap/commits/master
This commit is contained in:
parent
91b726dcf7
commit
58cc818a88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436098
@ -2,22 +2,27 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= soap2py
|
||||
PORTVERSION= 1.10
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.16
|
||||
CATEGORIES= net www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Python Simple SOAP Library
|
||||
COMMENT= Python simple and lightweight SOAP Library
|
||||
|
||||
LICENSE= LGPL3
|
||||
LICENSE= LGPL3+
|
||||
|
||||
NO_ARCH= yes
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
USES= python
|
||||
|
||||
GH_ACCOUNT= pysimplesoap
|
||||
GH_PROJECT= pysimplesoap
|
||||
USE_GITHUB= yes
|
||||
X_PLIST_FILES= %%PYTHON_SITELIBDIR%%/soap2py-1.16-py%%PYTHON_VER%%.egg-info/PKG-INFO \
|
||||
%%PYTHON_SITELIBDIR%%/soap2py-1.16-py%%PYTHON_VER%%.egg-info/SOURCES.txt \
|
||||
%%PYTHON_SITELIBDIR%%/soap2py-1.16-py%%PYTHON_VER%%.egg-info/dependency_links.txt \
|
||||
%%PYTHON_SITELIBDIR%%/soap2py-1.16-py%%PYTHON_VER%%.egg-info/top_level.txt
|
||||
PLIST_FILES= ${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO}/PKG-INFO \
|
||||
${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO}/SOURCES.txt \
|
||||
${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO}/dependency_links.txt \
|
||||
${PYTHON_SITELIBDIR}/${PYDISTUTILS_EGGINFO}/top_level.txt
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (pysimplesoap-pysimplesoap-1.10_GH0.tar.gz) = b7665ced6be9ce925b11d3a1a88d1ca2cdecda2ae3bb7490a891cc4ee9878ca0
|
||||
SIZE (pysimplesoap-pysimplesoap-1.10_GH0.tar.gz) = 37522
|
||||
TIMESTAMP = 1489401657
|
||||
SHA256 (soap2py-1.16.tar.gz) = 69a6253f8f6ac8d6b69369fb7b17eb595e8b185ca3e9fc90a21601c66265f9cb
|
||||
SIZE (soap2py-1.16.tar.gz) = 40032
|
||||
|
32
net/py-soap2py/files/patch-pysimplesoap-c14n.py
Normal file
32
net/py-soap2py/files/patch-pysimplesoap-c14n.py
Normal file
@ -0,0 +1,32 @@
|
||||
--- pysimplesoap/c14n.py.orig 2014-09-17 01:42:27 UTC
|
||||
+++ pysimplesoap/c14n.py
|
||||
@@ -174,7 +174,7 @@ class _implementation:
|
||||
elif node.nodeType == Node.DOCUMENT_TYPE_NODE:
|
||||
pass
|
||||
else:
|
||||
- raise TypeError, str(node)
|
||||
+ raise TypeError(str(node))
|
||||
|
||||
|
||||
def _inherit_context(self, node):
|
||||
@@ -217,7 +217,7 @@ class _implementation:
|
||||
elif child.nodeType == Node.DOCUMENT_TYPE_NODE:
|
||||
pass
|
||||
else:
|
||||
- raise TypeError, str(child)
|
||||
+ raise TypeError(str(child))
|
||||
handlers[Node.DOCUMENT_NODE] = _do_document
|
||||
|
||||
|
||||
@@ -346,9 +346,9 @@ class _implementation:
|
||||
|
||||
if not ns_rendered.has_key(prefix) and not ns_local.has_key(prefix):
|
||||
if not ns_unused_inherited.has_key(prefix):
|
||||
- raise RuntimeError,\
|
||||
+ raise RuntimeError(\
|
||||
'For exclusive c14n, unable to map prefix "%s" in %s' %(
|
||||
- prefix, node)
|
||||
+ prefix, node))
|
||||
|
||||
ns_local[prefix] = ns_unused_inherited[prefix]
|
||||
del ns_unused_inherited[prefix]
|
21
net/py-soap2py/files/patch-pysimplesoap-xmlsec.py
Normal file
21
net/py-soap2py/files/patch-pysimplesoap-xmlsec.py
Normal file
@ -0,0 +1,21 @@
|
||||
--- pysimplesoap/xmlsec.py.orig 2014-09-17 02:33:34 UTC
|
||||
+++ pysimplesoap/xmlsec.py
|
||||
@@ -203,15 +203,15 @@ def x509_verify(cacert, cert, binary=Fal
|
||||
if __name__ == "__main__":
|
||||
# basic test of enveloping signature (the reference is a part of the xml)
|
||||
sample_xml = """<Object xmlns="http://www.w3.org/2000/09/xmldsig#" Id="object">data</Object>"""
|
||||
- print canonicalize(sample_xml)
|
||||
+ print(canonicalize(sample_xml))
|
||||
vars = rsa_sign(sample_xml, '#object', "no_encriptada.key", "password")
|
||||
- print SIGNED_TMPL % vars
|
||||
+ print(SIGNED_TMPL % vars)
|
||||
|
||||
# basic test of enveloped signature (the reference is the document itself)
|
||||
sample_xml = """<?xml version="1.0" encoding="UTF-8"?><Object>data%s</Object>"""
|
||||
vars = rsa_sign(sample_xml % "", '', "no_encriptada.key", "password",
|
||||
sign_template=SIGN_ENV_TMPL, c14n_exc=False)
|
||||
- print sample_xml % (SIGNATURE_TMPL % vars)
|
||||
+ print(sample_xml % (SIGNATURE_TMPL % vars))
|
||||
|
||||
# basic signature verification:
|
||||
public_key = x509_extract_rsa_public_key(open("zunimercado.crt").read())
|
@ -18,4 +18,5 @@ Goals:
|
||||
- Extensible: supports several HTTP wrappers (httplib2, pycurl, urllib2) for
|
||||
special transport needs over SSL and proxy (ISA)
|
||||
|
||||
WWW: https://pypi.python.org/pypi/soap2py
|
||||
WWW: https://github.com/pysimplesoap/pysimplesoap
|
||||
|
Loading…
Reference in New Issue
Block a user