diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -6,16 +6,16 @@ pkgname='python2-pyopenssl' _name="${pkgname#python2-}" pkgver=21.0.0 -pkgrel=1 +pkgrel=2 pkgdesc='Wrapper module for OpenSSL, legacy Python 2 version' arch=('any') url="https://pypi.org/project/${_name}/${pkgver}/" license=('Apache') depends=( 'openssl' - 'python2' - 'python2-six' - 'python2-cryptography' + 'python2>=2.7' + 'python2-six>=1.5.2' + 'python2-cryptography>=3.3' ) makedepends=( 'python2-setuptools' @@ -23,14 +23,18 @@ makedepends=( checkdepends=( 'python2-flaky' 'python2-pretend' - 'python2-pytest-runner' + 'python2-pytest>=3.0.1' ) _tarname="${_name}-${pkgver}" source=("${_tarname}.tar.gz::https://github.com/pyca/${_name}/archive/${pkgver}.tar.gz") sha512sums=('bad555b8b8faa60992aad779e9c9af27b132a894d4d3e59fb65f423770b31f278f5966127ca7cdcf42184cefe0c7d6fa94b84482d0e97089031e4e508d77c424') prepare() { - export LC_CTYPE=en_US.UTF-8 + cd "${_tarname}" + + echo 'Disabling test_alpn_call_failure(self): fails because it calls the deprecated SSLv23_METHOD.' + sed -e 's/\( def test_alpn_call_failure(self):\)/ @pytest.mark.skip\n\1/' \ + -i tests/test_ssl.py } build() { @@ -40,9 +44,11 @@ build() { check() { ( + echo 'Temporarily force-enabling UTF-8 encoding (LC_ALL=en_US.UTF-8) even if disabled; needed for the tests.' + export LC_ALL=en_US.UTF-8 cd "${_tarname}" python2 setup.py pytest - ) || warning "Tests failed" + ) } package() { |