summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-03-21 22:04:19 +0000
committerwiz <wiz@pkgsrc.org>2014-03-21 22:04:19 +0000
commit411f5c8853feef0e0bc112993222567e2e2a0f92 (patch)
tree5840eafcd4f147cf3add910ef893e225e22a39c4
parent08ff0935bc2095ae28298ce96d103200e3955a43 (diff)
downloadpkgsrc-411f5c8853feef0e0bc112993222567e2e2a0f92.tar.gz
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.
-rw-r--r--security/py-cryptography/Makefile9
-rw-r--r--security/py-cryptography/distinfo3
-rw-r--r--security/py-cryptography/patches/patch-cryptography_____init____.py16
3 files changed, 25 insertions, 3 deletions
diff --git a/security/py-cryptography/Makefile b/security/py-cryptography/Makefile
index 40236f69e7c..e759ec20aa2 100644
--- a/security/py-cryptography/Makefile
+++ b/security/py-cryptography/Makefile
@@ -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 @@ LICENSE= apache-2.0
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 --git a/security/py-cryptography/distinfo b/security/py-cryptography/distinfo
index ea0e0924ce0..e3a9415fa70 100644
--- a/security/py-cryptography/distinfo
+++ b/security/py-cryptography/distinfo
@@ -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 --git a/security/py-cryptography/patches/patch-cryptography_____init____.py b/security/py-cryptography/patches/patch-cryptography_____init____.py
new file mode 100644
index 00000000000..cd599f7575e
--- /dev/null
+++ b/security/py-cryptography/patches/patch-cryptography_____init____.py
@@ -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__