python-cryptography: update to 2.7.

This commit is contained in:
Piotr Wójcik 2019-08-24 13:07:27 +02:00 committed by Piotr
parent 4039213171
commit 72c5929c12
2 changed files with 12 additions and 23 deletions

View file

@ -1,18 +0,0 @@
$OpenBSD: patch-src__cffi_src_openssl_ssl_py,v 1.2 2019/04/19 10:18:16 sthen Exp $
Index: src/_cffi_src/openssl/ssl.py
--- src/_cffi_src/openssl/ssl.py.orig
+++ src/_cffi_src/openssl/ssl.py
@@ -721,9 +721,11 @@ static const long TLS_ST_OK = 0;
#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0;
+#if !CRYPTOGRAPHY_IS_LIBRESSL
const SSL_METHOD *(*DTLS_method)(void) = NULL;
const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
const SSL_METHOD *(*DTLS_client_method)(void) = NULL;
+#endif
static const long SSL_OP_NO_DTLSv1 = 0;
static const long SSL_OP_NO_DTLSv1_2 = 0;
long (*DTLS_set_link_mtu)(SSL *, long) = NULL;

View file

@ -1,25 +1,31 @@
# Template file for 'python-cryptography'
pkgname=python-cryptography
version=2.4.2
revision=2
version=2.7
revision=1
wrksrc="cryptography-${version}"
build_style=python-module
pycompile_module="cryptography"
hostmakedepends="python-setuptools python3-setuptools libressl-devel
python-enum34 python-ipaddress python-six python3-six python-asn1crypto
python3-asn1crypto python-cffi python3-cffi python-idna python3-idna"
makedepends="libressl-devel python-devel python3-devel"
depends="python-cffi python-asn1crypto python-six python-enum34
python-idna python-ipaddress"
pycompile_module="cryptography"
checkdepends="python-cryptography_vectors python-hypothesis
python-iso-8601 python-pretend python-pytest python-pytz
python3-cryptography_vectors python3-hypothesis
python3-iso-8601 python3-pretend python3-pytest python3-pytz
${depends}"
short_desc="Python2 library that provides cryptographic recipes and primitives"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/pyca/cryptography"
license="BSD-3-Clause, Apache-2.0"
homepage="https://github.com/pyca/cryptography"
distfiles="${PYPI_SITE}/c/cryptography/cryptography-${version}.tar.gz"
checksum=05a6052c6a9f17ff78ba78f8e6eb1d777d25db3b763343a1ae89a7a8670386dd
checksum=e6347742ac8f35ded4a46ff835c60e68c22a536a8ae5c4422966d06946b6d4c6
post_install() {
vlicense LICENSE
vlicense LICENSE.BSD
}
python3-cryptography_package() {
@ -29,5 +35,6 @@ python3-cryptography_package() {
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
vlicense LICENSE.BSD
}
}