34 lines
1 KiB
Text
34 lines
1 KiB
Text
# Contributor: Alex Yam <alex@alexyam.com>
|
|
# Maintainer: Alex Yam <alex@alexyam.com>
|
|
pkgname=py3-rtree
|
|
_pkgname=rtree
|
|
pkgver=1.0.1
|
|
pkgrel=1
|
|
pkgdesc="Python3 library for r-tree spatial index (wrapper for libspatialindex)"
|
|
url="https://pypi.org/project/Rtree/"
|
|
# s390x: Test failed: IndexSerialization::test_interleaving - AssertionError
|
|
# s390x: Test failed: IndexStream::test_stream_input - AssertionError
|
|
arch="noarch !s390x"
|
|
license="MIT"
|
|
depends="python3 libspatialindex-dev"
|
|
makedepends="py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-numpy"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Toblerity/rtree/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest -v --doctest-modules rtree tests
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
473ed3bb6457a9831e464b102e52c9ff8667192d2c26880d4cb0bd3bbec51549a532d99ea44650be900298a1ea9302a6aab9c97e0b67c025a0362738062836c7 py3-rtree-1.0.1.tar.gz
|
|
"
|