aports/main/py3-cffi/APKBUILD

52 lines
1.4 KiB
Text
Raw Normal View History

# Maintainer: Peter Shkenev <santurysim@gmail.com>
2019-09-19 18:17:16 -03:00
pkgname=py3-cffi
2014-08-23 10:55:53 +00:00
_pkgname=cffi
2024-09-06 18:47:06 +00:00
pkgver=1.17.1
2024-09-20 21:35:53 +00:00
pkgrel=1
2020-07-26 18:45:29 -03:00
pkgdesc="Foreign function interface for calling C code from Python3"
2024-09-20 21:35:53 +00:00
url="https://cffi.readthedocs.io/"
arch="all"
2013-08-24 13:37:19 -05:00
license="MIT"
2019-09-19 18:17:16 -03:00
depends="py3-cparser"
makedepends="
libffi-dev
python3-dev
py3-gpep517
py3-setuptools
py3-wheel
"
2019-09-19 18:17:16 -03:00
checkdepends="py3-pytest"
2023-04-18 16:39:19 +00:00
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
fix-setuptools-deprecation.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
2013-08-24 13:37:19 -05:00
2019-09-19 18:17:16 -03:00
replaces="py-cffi" # Backwards compatibility
provides="py-cffi=$pkgver-r$pkgrel" # Backwards compatibility
2013-08-24 13:37:19 -05:00
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
2013-08-24 13:37:19 -05:00
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
PYTHONPATH="$(echo "$builddir"/build/lib.linux-*)" \
.testenv/bin/python3 -m pytest \
--disable-pytest-warnings testing/
}
2013-08-24 13:37:19 -05:00
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
2013-08-24 13:37:19 -05:00
}
2022-01-31 22:30:57 +01:00
sha512sums="
2024-09-06 18:47:06 +00:00
907129891d56351ca5cb885aae62334ad432321826d6eddfaa32195b4c7b7689a80333e6d14d0aab479a646aba148b9852c0815b80344dfffa4f183a5e74372c cffi-1.17.1.tar.gz
cf6fd617176abb034d2f781712ffecff440202b6d21868a02857e9a47748c76b0cf5712907d45fc05b745a18e9b5dd603b32771912d3bd2bd594421a7f607297 fix-setuptools-deprecation.patch
2022-01-31 22:30:57 +01:00
"