1 # Maintainer : Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
6 pkgname=('python-pyopenssl')
10 pkgdesc="Python3 wrapper module around the OpenSSL library"
11 url='https://github.com/pyca/pyopenssl'
13 depends=('openssl' 'python' 'python-six' 'python-cryptography')
14 replaces=('pyopenssl')
15 provides=('pyopenssl')
16 conflicts=('pyopenssl')
17 makedepends=('python-setuptools')
18 checkdepends=('python-pytest-runner' 'python-pretend' 'python-flaky')
19 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pyca/pyopenssl/archive/${pkgver}.tar.gz)
20 sha512sums=('bad555b8b8faa60992aad779e9c9af27b132a894d4d3e59fb65f423770b31f278f5966127ca7cdcf42184cefe0c7d6fa94b84482d0e97089031e4e508d77c424')
23 export LC_CTYPE=en_US.UTF-8
27 cd "$srcdir"/pyopenssl-$pkgver
32 cd "$srcdir"/pyopenssl-$pkgver
33 python setup.py pytest || warning "Tests failed due to missing SSLv3_METHOD"
36 package_python-pyopenssl() {
38 python setup.py install --root="$pkgdir" --optimize=1 --skip-build