1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-meson-python/APKBUILD

44 lines
962 B
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-meson-python
pkgver=0.12.1
pkgrel=0
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
patchelf
py3-pytest
py3-pytest-mock
py3-wheel
python3-dev
"
source="$pkgname-$pkgver.tar.gz::https://github.com/mesonbuild/meson-python/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/meson-python-$pkgver"
# options="!check" # no tests via meson
build() {
abuild-meson . output
meson compile -C output
}
check() {
# these require pip
pytest \
--deselect tests/conftest.py \
--deselect tests/test_pep518.py
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
6f8e840da0155f2dd0e7139387f875cfad79eb042abcfa69b3043f51cbae3222fc2986e13798389909a0b4719513c93af381ec00a69fdfedf14bbe4e100b2f08 py3-meson-python-0.12.1.tar.gz
"