pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py-cryptography Fix use with python-2.x.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80d6f07eac3e
branches:  trunk
changeset: 632278:80d6f07eac3e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Mar 21 22:04:19 2014 +0000

description:
Fix use with python-2.x.
Add test target and most of the needed dependencies.
(Two more packages ready, will be added after the freeze.)
Bump PKGREVISION.

diffstat:

 security/py-cryptography/Makefile                                   |   9 ++++-
 security/py-cryptography/distinfo                                   |   3 +-
 security/py-cryptography/patches/patch-cryptography_____init____.py |  16 ++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r ae094c17c41d -r 80d6f07eac3e security/py-cryptography/Makefile
--- a/security/py-cryptography/Makefile Fri Mar 21 21:43:07 2014 +0000
+++ b/security/py-cryptography/Makefile Fri Mar 21 22:04:19 2014 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2014/03/21 14:02:45 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2014/03/21 22:04:19 wiz Exp $
 
 DISTNAME=      cryptography-0.2.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    security python
 MASTER_SITES=  https://pypi.python.org/packages/source/c/cryptography/
 
@@ -14,6 +14,11 @@
 DEPENDS+=      ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi
 DEPENDS+=      ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-requests>=0.8:../../devel/py-requests
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test>=0.8:../../devel/py-test
+
+do-test:
+       cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r ae094c17c41d -r 80d6f07eac3e security/py-cryptography/distinfo
--- a/security/py-cryptography/distinfo Fri Mar 21 21:43:07 2014 +0000
+++ b/security/py-cryptography/distinfo Fri Mar 21 22:04:19 2014 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.3 2014/03/21 15:14:21 wiz Exp $
+$NetBSD: distinfo,v 1.4 2014/03/21 22:04:19 wiz Exp $
 
 SHA1 (cryptography-0.2.2.tar.gz) = 578e6a4cae6e24ecfa7069e1924ca99bd3c7d3ba
 RMD160 (cryptography-0.2.2.tar.gz) = 8203428fbef935cafe897ae0878ac7e482781211
 Size (cryptography-0.2.2.tar.gz) = 13772494 bytes
+SHA1 (patch-cryptography_____init____.py) = 540544faa803a1b07d8d4cedec164622601f5550
 SHA1 (patch-cryptography_hazmat_bindings_openssl_ssl.py) = f599f85c9b4e344cc9cd5d97a5a94ee9e5bcb9a9
 SHA1 (patch-cryptography_hazmat_bindings_utils.py) = ca5d740e397c5d49eb6934a4e94009866cef20ef
 SHA1 (patch-cryptography_hazmat_primitives_constant__time.py) = 75a2a83930917059ad6e4dac14fcae0c7585d426
diff -r ae094c17c41d -r 80d6f07eac3e security/py-cryptography/patches/patch-cryptography_____init____.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-cryptography/patches/patch-cryptography_____init____.py       Fri Mar 21 22:04:19 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-cryptography_____init____.py,v 1.1 2014/03/21 22:04:19 wiz Exp $
+
+Fix use with python-2.x.
+
+--- cryptography/__init__.py.orig      2014-03-04 00:51:26.000000000 +0000
++++ cryptography/__init__.py
+@@ -10,6 +10,9 @@
+ # implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
++
++from __future__ import absolute_import, division, print_function
++
+ from cryptography.__about__ import (
+     __title__, __summary__, __uri__, __version__, __author__, __email__,
+     __license__, __copyright__



Home | Main Index | Thread Index | Old Index