diff --git a/srcpkgs/python3-rtree/template b/srcpkgs/python3-rtree/template new file mode 100644 index 00000000000..652b840591e --- /dev/null +++ b/srcpkgs/python3-rtree/template @@ -0,0 +1,25 @@ +# Template file for 'python3-rtree' +pkgname=python3-rtree +version=0.9.4 +revision=1 +archs=noarch +wrksrc="rtree-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools libspatialindex-devel" +makedepends="python3-devel libspatialindex-devel" +depends="libspatialindex" +checkdepends="python3-pytest python3-numpy" +short_desc="Python3 bindings for libspatialindex" +maintainer="Karl Nilsson " +license="MIT" +homepage="https://toblerity.org/rtree/" +distfiles="https://github.com/Toblerity/rtree/archive/${version}.tar.gz" +checksum=d71a90913d0f1ce52c463383b175248f9469f02aea740f3f7579e541e703ea0f + +post_install() { + vlicense LICENSE.txt LICENSE +} + +do_check() { + python3 -m pytest tests/ +}