aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-meson-python/APKBUILD
blob: bebb7dee2344b2cfff0f9edbf8bf63f69920acae (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
# Maintainer:
pkgname=py3-meson-python
pkgver=0.15.0
pkgrel=1
pkgdesc="Meson PEP 517 Python build backend"
url="https://github.com/mesonbuild/meson-python"
arch="noarch"
license="MIT"
depends="
	meson
	py3-pyproject-metadata
	python3
	"
checkdepends="
	cython
	git
	patchelf
	py3-pytest
	py3-pytest-mock
	py3-wheel
	python3-dev
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mesonbuild/meson-python/archive/refs/tags/$pkgver.tar.gz
	pyproject-metadata-0.8.0.patch
	"
builddir="$srcdir/meson-python-$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	# these require pip
	pytest \
		--deselect tests/conftest.py \
		--deselect tests/test_pep518.py \
		-k 'not test_user_args'
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	python3 -m compileall "$pkgdir"/usr/lib
}

sha512sums="
f1fce89bb0a3d279b9900c4ecec78e5f24da92d72f64ebf6c27648b4201a75a65204c3fac08aaa3e8d70dbeef245c3235e39994c7c0b9cba27c0df528211c7f7  py3-meson-python-0.15.0.tar.gz
15fe0b6fa4d4b019ff975be19b408a09526d5cd9bbcf333d7be4e27054b5789bafee378a7cccb8c6e10177bb460a8855040f26f984d6e7afaa6083f1818fd205  pyproject-metadata-0.8.0.patch
"