diff --git a/srcpkgs/python-cffi/template b/srcpkgs/python-cffi/template index ec4561ac8b..27ae03879a 100644 --- a/srcpkgs/python-cffi/template +++ b/srcpkgs/python-cffi/template @@ -1,19 +1,28 @@ # Template file for 'python-cffi' pkgname=python-cffi -version=1.11.5 -revision=2 +version=1.12.3 +revision=1 wrksrc="cffi-${version}" build_style=python-module +pycompile_module="cffi" hostmakedepends="python-setuptools python3-setuptools libffi-devel" makedepends="python-devel python3-devel libffi-devel" depends="python-pycparser" -pycompile_module="cffi" +checkdepends="python-pytest python3-pytest python-pycparser + python3-pycparser" short_desc="C foreign function interface for Python2" maintainer="Alessio Sergi " -homepage="https://cffi.readthedocs.io/" license="MIT" +homepage="https://cffi.readthedocs.io/" distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz" -checksum=e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4 +checksum=041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774 + +do_check() { + python2 setup.py build_ext -i + python2 -m pytest c/ testing/ + python3 setup.py build_ext -i + python3 -m pytest c/ testing/ +} post_install() { vlicense LICENSE