aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-wheel/APKBUILD
blob: b2eabdabb1915b447b65dd5da9e6a17876283db0 (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
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-wheel
pkgver=0.42.0
pkgrel=0
pkgdesc="built-package format for Python"
url="https://github.com/pypa/wheel"
arch="noarch"
license="MIT"
depends="python3 py3-packaging"
makedepends="
	py3-flit-core
	py3-gpep517
	"
checkdepends="py3-pytest py3-setuptools python3-dev"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/w/wheel/wheel-$pkgver.tar.gz
	use-system-packaging.patch
	"
builddir="$srcdir"/wheel-$pkgver
options="!check" # circular with pytest

prepare() {
	default_prepare

	rm -rf src/wheel/vendored
}

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages test-env
	test-env/bin/python3 setup.py install
	test-env/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4816261c0f6d8971a80665f66868ec9cb082f2189b6e31e083a0d3a6080e159f06a4152f44eda1147a2b907b5aead0f63bbac725aacb56bb8be13fc77da2b79c  wheel-0.42.0.tar.gz
ce2081deefbbddf020a6e3fa4be7eed57f8cc53103fb4c7aa0fe2d129482d040df6b246768832979237f755d7af6f7779db085bc2c5d1485b25ffb26d302898e  use-system-packaging.patch
"