39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'python-cffi'
|
|
pkgname=python-cffi
|
|
version=1.14.0
|
|
revision=2
|
|
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 <al3hex@gmail.com>"
|
|
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=2d384f4a127a15ba701207f7639d94106693b6cd64173d6c8988e2c25f3ac2b6
|
|
|
|
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
|
|
}
|
|
}
|