mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
47 lines
1018 B
Plaintext
47 lines
1018 B
Plaintext
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=py3-meson-python
|
|
pkgver=0.13.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
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mesonbuild/meson-python/archive/refs/tags/$pkgver.tar.gz"
|
|
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="
|
|
037825eabcaec5bdb73890114ecfcfb05373bcb5e2806a8d38e4afeeecea42aa14f9c8cf0bec151bd231e2984c64608b28a1ec79640485933cd57c8895b6a305 py3-meson-python-0.13.1.tar.gz
|
|
"
|