blob: 37453df3b5a9537d7664db7404f588d2bfa460fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor:
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-cffi
_pkgname=cffi
pkgver=1.17.1
pkgrel=0
pkgdesc="Foreign function interface for calling C code from Python3"
url="http://cffi.readthedocs.org/"
arch="all"
license="MIT"
depends="py3-cparser"
makedepends="
libffi-dev
python3-dev
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
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"
replaces="py-cffi" # Backwards compatibility
provides="py-cffi=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
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/
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
907129891d56351ca5cb885aae62334ad432321826d6eddfaa32195b4c7b7689a80333e6d14d0aab479a646aba148b9852c0815b80344dfffa4f183a5e74372c cffi-1.17.1.tar.gz
cf6fd617176abb034d2f781712ffecff440202b6d21868a02857e9a47748c76b0cf5712907d45fc05b745a18e9b5dd603b32771912d3bd2bd594421a7f607297 fix-setuptools-deprecation.patch
"
|