blob: 33aa21b5322678ca2e677d832b54195aa1f997bc (
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
|
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-wheel
_pyname=wheel
pkgver=0.38.4
pkgrel=1
pkgdesc="built-package format for Python"
url="https://github.com/pypa/wheel"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
depends="python3 py3-packaging"
makedepends="py3-setuptools"
checkdepends="py3-pytest python3-dev"
source="https://files.pythonhosted.org/packages/source/w/wheel/wheel-$pkgver.tar.gz
use-system-packaging.patch
"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # circular with pytest
prepare() {
default_prepare
# py3-pytest-cov not available in main
sed -i '/cov-config/d' setup.cfg
# we're not macos
rm tests/test_macosx_libfile.py
}
build() {
rm -rf src/wheel/vendored
python3 setup.py build
}
check() {
python3 -m venv --system-site-packages test-env
test-env/bin/python3 setup.py install
test-env/bin/python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm 0644 "$srcdir"/$_pyname-$pkgver/docs/index.rst "$pkgdir/usr/share/doc/py3-wheel"
}
sha512sums="
46d0589868cdc653b231bd3adb63c1e1e65c2d4d2a7696c2a64b6dc42b2512496af4ee28e5cea66d4dcc6c610ce2d567792f044929dea8ba3e22d2f8d6cafe61 wheel-0.38.4.tar.gz
f408d3c9ccaece65fe38303cda0df0d63cd142ec9fab5751cadcaad9758bb39c0172a1d4e0407338a684efb54b695d11410712acdb081352e692db0803f2626e use-system-packaging.patch
"
|