summaryrefslogtreecommitdiff
path: root/testing/py3-pdal/APKBUILD
blob: 12f27139280fef31d4a2099baf6063e5c8afaa01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=py3-pdal
pkgver=3.2.1
pkgrel=0
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"
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="
aeb5f731b165a4e7f9aa55ad45fcf917e8ef15a2f3e5884aa795edd3c544bfc01cefa0ddfb03c77f4c7d51b1a2ffa1055fef2b1a99cd8449c032dd81610c7a60  py3-pdal-3.2.1.tar.gz
"