aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-rtree/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-rtree/APKBUILD')
-rw-r--r--testing/py3-rtree/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/py3-rtree/APKBUILD b/testing/py3-rtree/APKBUILD
new file mode 100644
index 00000000000..52acba3565e
--- /dev/null
+++ b/testing/py3-rtree/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Alex Yam <alex@alexyam.com>
+# Maintainer: Alex Yam <alex@alexyam.com>
+pkgname=py3-rtree
+_pkgname=rtree
+pkgver=1.1.0
+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="
+97a87027e49520f12cb86444ee8a9795fabeec6d8f0e3e869f2714df8f7c649ced1374385852af0ce7d7eb91e5a2cb464a4330807be15d538dc0a4d8de7b7ca2 py3-rtree-1.1.0.tar.gz
+"