mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
|
|
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
|
|
pkgname=py3-shapely
|
|
pkgver=1.8.1
|
|
pkgrel=2
|
|
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
|
|
url="https://pypi.python.org/pypi/Shapely"
|
|
arch="all !riscv64" # py3-matplotlib
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-numpy
|
|
"
|
|
makedepends="
|
|
geos-dev
|
|
py3-matplotlib
|
|
py3-numpy-dev
|
|
py3-packaging
|
|
py3-setuptools
|
|
python3-dev
|
|
cython
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
"
|
|
source="
|
|
https://pypi.io/packages/source/S/Shapely/Shapely-$pkgver.tar.gz
|
|
10-packaging.patch
|
|
"
|
|
builddir="$srcdir/Shapely-$pkgver"
|
|
|
|
build() {
|
|
rm -r _vendor # This is provided by py3-packaging
|
|
|
|
cython shapely/speedups/_speedups.pyx
|
|
cython shapely/vectorized/_vectorized.pyx
|
|
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# Tests fail on s390x
|
|
case "$CARCH" in
|
|
s390x) return 0 ;;
|
|
esac
|
|
|
|
# These examples are executed during test, but they depend on pylab, which is not in Alpine
|
|
rm -r shapely/examples/*
|
|
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=2
|
|
}
|
|
|
|
sha512sums="
|
|
42fcbf1bfdaf1337e327c1357109fff2fad69bfcc7728cb19cad9a43e94d316299069934af212badbc3cfe2b3694fe43bf6ee589d01d5f7ff57b6c25c1386510 Shapely-1.8.1.tar.gz
|
|
7cebaf4e059d71e1cd374539eb056491afbf736e05bf369a3c6533306885940d108340ada56ec7662e30aac04d2bd3ac4019ccf2fc447151d2274009d93d00fe 10-packaging.patch
|
|
"
|