aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno <hanno@gentoo.org>2014-07-22 23:13:20 +0200
committerHanno <hanno@gentoo.org>2014-07-22 23:13:20 +0200
commit6c6007bbaf4584b9987f79a6a72a31987ce3f7a3 (patch)
treeb54b112191f4c37399826ef47c05eff164442448 /dev-python
parentw3m libressl patch (diff)
downloadlibressl-6c6007bbaf4584b9987f79a6a72a31987ce3f7a3.tar.gz
libressl-6c6007bbaf4584b9987f79a6a72a31987ce3f7a3.tar.bz2
libressl-6c6007bbaf4584b9987f79a6a72a31987ce3f7a3.zip
add dev-python/cryptography
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cryptography/ChangeLog84
-rw-r--r--dev-python/cryptography/Manifest6
-rw-r--r--dev-python/cryptography/cryptography-0.5.2.ebuild40
-rw-r--r--dev-python/cryptography/files/asn1.patch16
-rw-r--r--dev-python/cryptography/files/cryptography-liressl.diff76
-rw-r--r--dev-python/cryptography/metadata.xml8
6 files changed, 230 insertions, 0 deletions
diff --git a/dev-python/cryptography/ChangeLog b/dev-python/cryptography/ChangeLog
new file mode 100644
index 0000000..fdc975e
--- /dev/null
+++ b/dev-python/cryptography/ChangeLog
@@ -0,0 +1,84 @@
+# ChangeLog for dev-python/cryptography
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cryptography/ChangeLog,v 1.19 2014/07/11 00:04:34 radhermit Exp $
+
+*cryptography-0.5.2 (11 Jul 2014)
+
+ 11 Jul 2014; Tim Harder <radhermit@gentoo.org> +cryptography-0.5.2.ebuild:
+ Version bump.
+
+*cryptography-0.5.1 (08 Jul 2014)
+
+ 08 Jul 2014; Tim Harder <radhermit@gentoo.org> +cryptography-0.5.1.ebuild:
+ Version bump.
+
+ 03 Jul 2014; Tobias Klausmann <klausman@gentoo.org>
+ cryptography-0.4-r1.ebuild, cryptography-0.4-r2.ebuild:
+ Ensure usage of new-enough pytest version (see bug 514442)
+
+*cryptography-0.4-r2 (23 Jun 2014)
+
+ 23 Jun 2014; Ian Delaney <idella4@gentoo.org> +cryptography-0.4-r2.ebuild,
+ +files/asn1.patch, cryptography-0.4-r1.ebuild:
+ revbump; patch required to fix a test failing in pyopenssl, fixes Bug #514418
+
+ 08 Jun 2014; Akinori Hattori <hattya@gentoo.org> cryptography-0.4-r1.ebuild:
+ keyword ~ia64 wrt bug #503094
+
+ 10 May 2014; Ian Delaney <idella4@gentoo.org> cryptography-0.4-r1.ebuild:
+ add new dep, drop py2.6 upport
+
+*cryptography-0.4-r1 (08 May 2014)
+
+ 08 May 2014; Michał Górny <mgorny@gentoo.org> +cryptography-0.4-r1.ebuild,
+ -cryptography-0.2.1.ebuild, -cryptography-0.2.2.ebuild,
+ -cryptography-0.3.ebuild, -cryptography-0.4.ebuild:
+ Add a slot operator on dev-python/cffi dep (bug #506552), and make it
+ conditional to CPython implementations (PyPy has built-in cffi). Drop old.
+
+*cryptography-0.4 (07 May 2014)
+
+ 07 May 2014; Patrick Lauer <patrick@gentoo.org> +cryptography-0.4.ebuild:
+ Bump
+
+ 03 Apr 2014; Tim Harder <radhermit@gentoo.org> cryptography-0.2.2.ebuild,
+ cryptography-0.3.ebuild:
+ Sync ~arm keywords.
+
+*cryptography-0.3 (03 Apr 2014)
+
+ 03 Apr 2014; Tim Harder <radhermit@gentoo.org> +cryptography-0.3.ebuild:
+ Version bump, add python3_4 support.
+
+ 31 Mar 2014; Michał Górny <mgorny@gentoo.org> cryptography-0.2.1.ebuild,
+ cryptography-0.2.2.ebuild:
+ Add support for the new PyPy slotting.
+
+ 22 Mar 2014; Markos Chandras <hwoarang@gentoo.org> cryptography-0.2.2.ebuild:
+ Add ~mips. Bug #503094
+
+ 22 Mar 2014; Markus Meier <maekke@gentoo.org> cryptography-0.2.1.ebuild:
+ add ~arm, bug #503094
+
+*cryptography-0.2.2 (15 Mar 2014)
+
+ 15 Mar 2014; Tim Harder <radhermit@gentoo.org> +cryptography-0.2.2.ebuild:
+ Version bump.
+
+ 04 Mar 2014; Naohiro Aota <naota@gentoo.org> cryptography-0.2.1.ebuild:
+ Add ~x86-fbsd wrt bug #503094
+
+ 03 Mar 2014; Jeroen Roovers <jer@gentoo.org> cryptography-0.2.1.ebuild:
+ Marked ~hppa (bug #503094).
+
+ 01 Mar 2014; Tim Harder <radhermit@gentoo.org> cryptography-0.2.1.ebuild:
+ Add pypy2_0 support.
+
+ 01 Mar 2014; Tim Harder <radhermit@gentoo.org> cryptography-0.2.1.ebuild:
+ Fix deps.
+
+*cryptography-0.2.1 (01 Mar 2014)
+
+ 01 Mar 2014; Tim Harder <radhermit@gentoo.org> +cryptography-0.2.1.ebuild,
+ +metadata.xml:
+ Initial import.
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
new file mode 100644
index 0000000..18f77de
--- /dev/null
+++ b/dev-python/cryptography/Manifest
@@ -0,0 +1,6 @@
+AUX asn1.patch 583 SHA256 14a90ece482d3a5cf428ed989d2f816d84345558b01b0df85dd9711cfda32db6 SHA512 0bc83be0ab56ec8abb59df86b1cb44137228854414fb0e3a48a19727e32e3c85b1a0c5134053a1ff12755323cc0ac7fd706a044dae91511f8280d4dd4e78445a WHIRLPOOL d5feee082478e5a80772252c35e138580abba816e084fce992ff9cbec308839d9214b57a4772f59fb225a89757c8055a1e293e3258601cdfce4731dd73c78fa7
+AUX cryptography-liressl.diff 3529 SHA256 454d49751319b9e724b35b9a82bdba9442065f99b0ab4a57a4e57da0bf9a78d1 SHA512 6f29895de938ba80d71a9921a50295174328ea38d6711b45d93875abb206cc606024a692780822d6fe27408a4e813fd2be930fa14a003583b1c2ea05f9e05b46 WHIRLPOOL 3ce6d92d07fa1538f044a9c8fcd8f9ca7ed97a03900b0f3e1c959c389702fbb1828c3207ad1fb35720745fc0ce04571fb607bdc962c105ecd40538bf82b35dfc
+DIST cryptography-0.5.2.tar.gz 319705 SHA256 39e00712ace199c0346f59a5e4526782841277167649ee5dc4ec8faeb786d288 SHA512 90d8fafcc5e51f8a6a9f4427f4a66de34d4537943603485170d90158d1bf745ee60e3582138ae1953fdb652f4c98678fd846077d603d96cf93c53fa8f66eda98 WHIRLPOOL 2eef91130560a45103c744ed60e65bbd2c2738f766603629ef7f1e469d5274317ae4323491348e4cdb75a6acc4f8dd762e7b2e53a7f2104ba72f606b565df030
+EBUILD cryptography-0.5.2.ebuild 1250 SHA256 72e21a6ba6dcfe8be82baa506d4809b9df09e2d5853da15c5ab96d9e87dea5c6 SHA512 cad9baeb48e45ce476de1b559d27bc0129c72f1f5a76761e155e89d39ab0f5c989f6a1117d90eb3c50c02c78e0a4915616f639ccb157a1341ffcce34db2823ec WHIRLPOOL 85f662dc0ffc596f5151d0ec1d22f2ca529190a00e3aff81eff10e9421a17025571934c02a42ccb9541bda2d6db92edb179bbaad6e7c2699d7e5caa77eddef5c
+MISC ChangeLog 2919 SHA256 e4020a34225f2f691927eeff8e1df07de398fbda6671e0d2f9e5b2487c7d5161 SHA512 fb25091df950f46aede4c6bb42f841e12787941c23dfdc4c9f078edd4afaa6640368c029a7bc29c9c75bb3d756a233c03ad329bf4727994f6ecd6b17b2e1bac4 WHIRLPOOL 5f35096d5a472b36fd1608a11c60f55d940228cd774ca2b6bca8eb30e305cb363240c08f888f4de429c09c77a876700e332b9a5b99a266fa7788546bc48bd9fd
+MISC metadata.xml 235 SHA256 ed253d917bfdfb8c5311727f3d2e0da8e286e312082228f2fc2b363e54b9fc8a SHA512 a8cdfe62f3aa329708c4361281dc82d395a917c812dbf22f324bfb75c4f9df15a0759d397c28ee3189a0e2ceb48f6a537d7b11983b7cc9f3fa9dd154d04f147f WHIRLPOOL 4287962b1291e7d9e2e5ae11b7e38c0979793e945667c9e1c243d2fe9c8273b7251a0ef44647e8b4d70146104af59a1a88d473368c387dadb4f35981c3d6c700
diff --git a/dev-python/cryptography/cryptography-0.5.2.ebuild b/dev-python/cryptography/cryptography-0.5.2.ebuild
new file mode 100644
index 0000000..1b669d9
--- /dev/null
+++ b/dev-python/cryptography/cryptography-0.5.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cryptography/cryptography-0.5.2.ebuild,v 1.1 2014/07/11 00:04:34 radhermit Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Library providing cryptographic recipes and primitives"
+HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~x86 ~x86-fbsd"
+IUSE="test"
+
+RDEPEND="dev-libs/openssl:0
+ >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/cffi-0.8:=[${PYTHON_USEDEP}]' python*)"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ =dev-python/cryptography-vectors-${PV}[${PYTHON_USEDEP}]
+ dev-python/iso8601[${PYTHON_USEDEP}]
+ dev-python/pretend[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}]
+ )"
+
+DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
+
+src_prepare() {
+ epatch "${FILESDIR}/cryptography-liressl.diff"
+}
+
+python_test() {
+ py.test -v || die "Tests fail with ${EPYTHON}"
+}
diff --git a/dev-python/cryptography/files/asn1.patch b/dev-python/cryptography/files/asn1.patch
new file mode 100644
index 0000000..0b8f8de
--- /dev/null
+++ b/dev-python/cryptography/files/asn1.patch
@@ -0,0 +1,16 @@
+https://github.com/pyca/cryptography/commit/1e95bc636ffd66451b6097b0a7f55c6a004563b7
+diff --git a/cryptography/hazmat/bindings/openssl/asn1.py b/cryptography/hazmat/bindings/openssl/asn1.py
+index dfdf1bf..2edfd2d 100644
+--- a/cryptography/hazmat/bindings/openssl/asn1.py
++++ b/cryptography/hazmat/bindings/openssl/asn1.py
+@@ -141,6 +141,9 @@
+
+ /* These isn't a macro the arg is const on openssl 1.0.2+ */
+ int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *);
++
++/* Not a macro, const on openssl 1.0 */
++int ASN1_STRING_set_default_mask_asc(char *);
+ """
+
+ CUSTOMIZATIONS = """
+
diff --git a/dev-python/cryptography/files/cryptography-liressl.diff b/dev-python/cryptography/files/cryptography-liressl.diff
new file mode 100644
index 0000000..1f122ec
--- /dev/null
+++ b/dev-python/cryptography/files/cryptography-liressl.diff
@@ -0,0 +1,76 @@
+diff -Naur cryptography-0.5.2/cryptography/hazmat/bindings/openssl/engine.py cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/engine.py
+--- cryptography-0.5.2/cryptography/hazmat/bindings/openssl/engine.py 2014-07-10 02:54:35.000000000 +0200
++++ cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/engine.py 2014-07-22 23:06:43.076997776 +0200
+@@ -58,7 +58,6 @@
+ int ENGINE_finish(ENGINE *);
+ void ENGINE_load_openssl(void);
+ void ENGINE_load_dynamic(void);
+-void ENGINE_load_cryptodev(void);
+ void ENGINE_load_builtin_engines(void);
+ void ENGINE_cleanup(void);
+ ENGINE *ENGINE_get_default_RSA(void);
+diff -Naur cryptography-0.5.2/cryptography/hazmat/bindings/openssl/rand.py cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/rand.py
+--- cryptography-0.5.2/cryptography/hazmat/bindings/openssl/rand.py 2014-07-10 02:54:35.000000000 +0200
++++ cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/rand.py 2014-07-22 23:02:10.251408565 +0200
+@@ -25,9 +25,6 @@
+ void RAND_seed(const void *, int);
+ void RAND_add(const void *, int, double);
+ int RAND_status(void);
+-int RAND_egd(const char *);
+-int RAND_egd_bytes(const char *, int);
+-int RAND_query_egd_bytes(const char *, unsigned char *, int);
+ const char *RAND_file_name(char *, size_t);
+ int RAND_load_file(const char *, long);
+ int RAND_write_file(const char *);
+diff -Naur cryptography-0.5.2/cryptography/hazmat/bindings/openssl/ssl.py cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/ssl.py
+--- cryptography-0.5.2/cryptography/hazmat/bindings/openssl/ssl.py 2014-07-10 02:54:35.000000000 +0200
++++ cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/ssl.py 2014-07-22 23:05:18.648053283 +0200
+@@ -157,7 +157,6 @@
+
+ typedef ... SSL_CIPHER;
+ typedef ... Cryptography_STACK_OF_SSL_CIPHER;
+-typedef ... COMP_METHOD;
+ """
+
+ FUNCTIONS = """
+@@ -197,10 +196,6 @@
+ const char *SSL_get_cipher_list(const SSL *, int);
+ Cryptography_STACK_OF_SSL_CIPHER *SSL_get_ciphers(const SSL *);
+
+-const COMP_METHOD *SSL_get_current_compression(SSL *);
+-const COMP_METHOD *SSL_get_current_expansion(SSL *);
+-const char *SSL_COMP_get_name(const COMP_METHOD *);
+-
+ /* context */
+ void SSL_CTX_free(SSL_CTX *);
+ long SSL_CTX_set_timeout(SSL_CTX *, long);
+@@ -520,7 +515,7 @@
+ #endif
+
+ /* ALPN was added in OpenSSL 1.0.2. */
+-#if OPENSSL_VERSION_NUMBER < 0x10002001L
++#if OPENSSL_VERSION_NUMBER < 0x10002001L || OPENSSL_VERSION_NUMBER >= 0x20000000L
+ int (*SSL_CTX_set_alpn_protos)(SSL_CTX *,
+ const unsigned char*,
+ unsigned) = NULL;
+diff -Naur cryptography-0.5.2/cryptography/hazmat/bindings/openssl/x509_vfy.py cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/x509_vfy.py
+--- cryptography-0.5.2/cryptography/hazmat/bindings/openssl/x509_vfy.py 2014-07-10 02:54:35.000000000 +0200
++++ cryptography-0.5.2-1/cryptography/hazmat/bindings/openssl/x509_vfy.py 2014-07-22 23:01:18.596054346 +0200
+@@ -207,7 +207,7 @@
+ #endif
+
+ /* OpenSSL 1.0.2+ verification error codes */
+-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
++#ifdef X509_V_ERR_EMAIL_MISMATCH
+ static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 1;
+ #else
+ static const long Cryptography_HAS_102_VERIFICATION_ERROR_CODES = 0;
+@@ -223,7 +223,7 @@
+ #endif
+
+ /* OpenSSL 1.0.2+ verification parameters */
+-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
++#ifdef X509_V_FLAG_PARTIAL_CHAIN
+ static const long Cryptography_HAS_102_VERIFICATION_PARAMS = 1;
+ #else
+ static const long Cryptography_HAS_102_VERIFICATION_PARAMS = 0;
diff --git a/dev-python/cryptography/metadata.xml b/dev-python/cryptography/metadata.xml
new file mode 100644
index 0000000..d8bdc7b
--- /dev/null
+++ b/dev-python/cryptography/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <upstream>
+ <remote-id type="pypi">cryptography</remote-id>
+ </upstream>
+</pkgmetadata>