projects/aports·blob master · refs

44 lines · 1.6 KiB

1# Contributor: Brian Vuyk <[email protected]>
2# Maintainer: Brian Vuyk <[email protected]>
3pkgname=pdal-python-plugins
4pkgver=1.6.6
5pkgrel=1
6pkgdesc="Supports embedding Python in PDAL pipelines with the readers.numpy and filters.python drivers."
7url="https://github.com/PDAL/python-plugins"
8arch="all !s390x" # Exclude s390x due to test failures.
9license="BSD-3-Clause"
10depends="python3 py3-numpy"
11checkdepends="pdal"
12makedepends="cmake pdal-dev py3-gpep517 py3-numpy-dev py3-pybind11
13 py3-scikit-build-core python3-dev samurai"
14source="https://files.pythonhosted.org/packages/source/p/pdal-plugins/pdal_plugins-$pkgver.tar.gz
15 enable-tests.patch"
16builddir="$srcdir/pdal_plugins-$pkgver"
17
18build() {
19 gpep517 build-wheel \
20 --wheel-dir .dist \
21 --output-fd 3 3>&1 >&2
22}
23
24check() {
25 export WHEEL_DIR="$(python3 -m "scikit_build_core.builder.wheel_tag")"
26 export PDAL_DRIVER_PATH="$builddir"/build/$WHEEL_DIR/Release
27 # filters.python should appear in pdal output
28 pdal --drivers
29
30 # Copy test data where tests can find them
31 mkdir -p $PDAL_DRIVER_PATH/src/pdal/test/
32 cp -r "$builddir"/src/pdal/test/data $PDAL_DRIVER_PATH/src/pdal/test/
33 $PDAL_DRIVER_PATH/pdal_filters_python_test --gtest_filter=-PLangTest.log
34 $PDAL_DRIVER_PATH/pdal_io_numpy_test
35}
36
37package() {
38 python3 -m installer -d "$pkgdir" .dist/*.whl
39}
40
41sha512sums="
42ed5ac3bbc77fe48b0de148f48e4b756f1e7b0f34d3e55ecf47ad87468944e107ff020bc61ee369343257b5f7506bb35c35663639936b91811cf143d7c259330a pdal_plugins-1.6.6.tar.gz
436597ac5f0218a080ae0510f87c534ed794914c0882118524c0a9ff91435e348b6a1f689f1122fde02dea04524dcc2ad2dc5bfc74e1477c15f8bc451b1e1453c5 enable-tests.patch
44"