From 5e9db0992a0956c618f23f1bea5100f6c61361d6 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 16 Feb 2021 13:40:37 -0500 Subject: [PATCH] python-cffi: update to 1.14.5. --- srcpkgs/python-cffi/template | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python-cffi/template b/srcpkgs/python-cffi/template index 25c1dbdf7cc..b25bc18300b 100644 --- a/srcpkgs/python-cffi/template +++ b/srcpkgs/python-cffi/template @@ -1,27 +1,34 @@ # Template file for 'python-cffi' pkgname=python-cffi -version=1.14.4 +version=1.14.5 revision=1 wrksrc="cffi-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools libffi-devel" makedepends="python-devel python3-devel libffi-devel" depends="python-pycparser" -checkdepends="python-pytest python3-pytest python-pycparser - python3-pycparser" +checkdepends="python-pytest python3-pytest python-pycparser python3-pycparser" short_desc="C foreign function interface for Python2" -maintainer="Alessio Sergi " +maintainer="Andrew J. Hesford " license="MIT" homepage="https://cffi.readthedocs.io/" changelog="https://cffi.readthedocs.io/en/latest/whatsnew.html" distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz" -checksum=1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef421d04f5f66ba8f06086c +checksum=fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c do_check() { - python2 setup.py build_ext -i - python2 -m pytest c/ testing/ - python3 setup.py build_ext -i - python3 -m pytest c/ testing/ + # glibc libm.so is a GNU ld script that isn't properly handled + # on dlopen; libm symbols required in these tests are missing + local excludes='not sin' + excludes+=' and not test_dlopen' + excludes+=' and not test_function_typedef' + excludes+=' and not test_wraps_from_stdlib' + excludes+=' and not test_stdcall_only_on_windows' + + PYTHONPATH="$(cd build-2.7/lib* && pwd)" \ + python2 -m pytest c/ testing/ -x -k "$excludes" + PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" \ + python3 -m pytest c/ testing/ -x -k "$excludes" } post_install() {