# Template file for 'python3-shapely' pkgname=python3-shapely reverts="1.7a1_1 1.7a1_2 1.7a1_3" version=1.7.1 revision=1 wrksrc="Shapely-${version}" build_style=python3-module build_helper=numpy hostmakedepends="python3-setuptools python3-Cython geos" makedepends="python3-devel python3-numpy geos-devel" checkdepends="python3-pytest" short_desc="Library for manipulation and analysis of geometric objects for Python3" maintainer="Karl Nilsson " license="BSD-3-Clause" homepage="https://github.com/Toblerity/Shapely" distfiles="https://github.com/Toblerity/Shapely/archive/${version}.tar.gz" checksum=8a39f78a5bb21bc7a0f6e3aa9d78291fad53a433346ffa2474076698da47f24c if [ "$XBPS_TARGET_MACHINE" = "aarch64-musl" ]; then broken="aarch64-musl's geos crashes" fi pre_configure() { if [ "$CROSS_BUILD" ]; then sed " /^prefix=/s,=.*,=$XBPS_CROSS_BASE/usr, s,echo [\$]{prefix}$,echo /usr, " $XBPS_CROSS_BASE/usr/bin/geos-config >$XBPS_WRAPPERDIR/geos-config chmod +x $XBPS_WRAPPERDIR/geos-config fi } post_install() { vlicense LICENSE.txt LICENSE } do_check() { python3 -m pytest tests/ }