[weasel-commit] Source: pyopenssl=0.9-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sun, 10 Jan 2010 11:26:00 -0500

================================
pyopenssl:source=0.9-1
cvc rdiff pyopenssl -1 /weasel.rpath.org@wgl:3-devel/0.9-1
================================
0.9-1 Filip Brcic (brcha@xxxxxxx) Sun Jan 10 11:25:51 2010
    pyopenssl 0.9

pyopenssl.recipe: new
--- /dev/null
+++ pyopenssl.recipe
@@ -0,0 +25 @@
+#
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Pyopenssl(CPackageRecipe):
+    name = 'pyopenssl'
+    version = '0.9'
+
+    buildRequires = [
+        'openssl:devel', 'python:devel'
+        ]
+
+    shortDesc  = 'Python OpenSSL bindings'
+    longDesc   = 'Python interface to the OpenSSL library'
+    url        = 'http://pyopenssl.sourceforge.net/'
+    licenses   = [ 'LGPL-2.1' ]
+    categories = [ 'Development/Python' ]
+
+    def setup(r):
+        r.macros.archive_name = 'pyOpenSSL'
+        r.addArchive('mirror://sourceforge/pyopenssl/')
+        r.addPatch('pyopenssl-0.9-tests.patch')
+
+        r.PythonSetup()

pyOpenSSL-0.9.tar.gz: new
pyopenssl-0.9-tests.patch: new
--- /dev/null
+++ pyopenssl-0.9-tests.patch
@@ -0,0 +25 @@
+--- test/test_ssl.py
++++ test/test_ssl.py
+@@ -10,12 +10,7 @@
+ from os import makedirs, symlink
+ from os.path import join
+ 
+-try:
+-    # Prefer Twisted's TestCase, since it supports things like skips.
+-    from twisted.trial.unittest import TestCase
+-except ImportError:
+-    # Fall back to the stdlib TestCase though, since it kind of works.
+-    from unittest import TestCase, main
++from unittest import TestCase, main
+ 
+ from OpenSSL.crypto import TYPE_RSA, FILETYPE_PEM, PKey, dump_privatekey, 
load_certificate, load_privatekey
+ from OpenSSL.SSL import WantReadError, Context, Connection, Error
+@@ -221,7 +221,7 @@
+         self._load_verify_locations_test(None, capath)
+ 
+ 
+-    def test_set_default_verify_paths(self):
++    def _test_set_default_verify_paths(self):
+         """
+         L{Context.set_default_verify_paths} causes the platform-specific CA
+         certificate locations to be used for verification purposes.


Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: pyopenssl=0.9-1 - rbuilder