description="Foreign Function Interface for Python calling C code"
url="https://cffi.readthedocs.org/"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(python-setuptools python-wheel python-pycparser)

name=python-cffi
_name="cffi"
alias=(${_name})

version=1.16.0
release=2

source=(https://github.com/python-cffi/cffi/archive/refs/tags/v1.16.0.tar.gz)

build() {

  cd ${_name}-$version

  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

 find $PKG -type d -name vendor -o -name tests |xargs rm -rf 
}
