# Contributor: Bradley J Chambers # Maintainer: Bradley J Chambers pkgname=py3-pdal pkgver=3.2.3 pkgrel=1 pkgdesc="PDAL Python bindings" options="!check" # disabled - failing test with circular import url="https://github.com/pdal/python" arch="all" license="BSD-3-Clause" depends="python3 py3-numpy" checkdepends="pdal py3-pytest" makedepends="python3-dev pdal-dev py3-scikit-build py3-numpy-dev cmake ninja py3-pybind11-dev" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/PDAL/python/archive/$pkgver.tar.gz" builddir="$srcdir/python-$pkgver" replaces="py-pdal" # Backwards compatibility provides="py-pdal=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build -DWITH_TESTS=ON } check() { export PYTHONPATH=$PYTHONPATH:$(python -c "import os, skbuild; print(os.path.join('plugins', skbuild.constants.SKBUILD_DIR(), 'cmake-build'))") py.test -v test/ } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 363c3ffe25f4f5498ceddf9b2dc93793e70ecbf787d8c393a55be68ae3432119557be3b28122476030a81009a1f8882079dd10deb9087fcbe1eaec1c8dc44808 py3-pdal-3.2.3.tar.gz "