# Template file for 'python-cffi' pkgname=python-cffi version=1.14.4 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" short_desc="C foreign function interface for Python2" maintainer="Alessio Sergi " 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 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 } python3-cffi_package() { depends="python3-pycparser" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENSE } }