mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-17 22:02:12 +01:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# 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
|
|
"
|