archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pyopenssl / trunk / PKGBUILD
blob487cc596bff149953ff83dcd5c0b727c4f1ae843
1 # Maintainer : Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
5 pkgbase=pyopenssl
6 pkgname=('python-pyopenssl')
7 pkgver=21.0.0
8 pkgrel=5
9 arch=('any')
10 pkgdesc="Python3 wrapper module around the OpenSSL library"
11 url='https://github.com/pyca/pyopenssl'
12 license=('Apache')
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')
22 prepare() {
23   export LC_CTYPE=en_US.UTF-8
26 build() {
27   cd "$srcdir"/pyopenssl-$pkgver
28   python setup.py build
31 check() {
32   cd "$srcdir"/pyopenssl-$pkgver
33   python setup.py pytest || warning "Tests failed due to missing SSLv3_METHOD"
36 package_python-pyopenssl() {
37   cd pyopenssl-$pkgver
38   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
41 # vim: ts=2 sw=2 et: