aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-shapely/APKBUILD
blob: 8ec8c879c3c02c85612fb56d36956b43e82331ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
_pkgname=shapely
pkgname=py3-$_pkgname
pkgver=1.6.4_p2
_pkgverbase=${pkgver%_p*}
_pkgversuffix=.post${pkgver#*_p}
pkgrel=2
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
url="https://pypi.python.org/pypi/Shapely"
arch="all s390x"
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-$_pkgverbase$_pkgversuffix.tar.gz
	10-packaging.patch
	skip-test-that-fails-with-python-3.8.patch
	"
builddir="$srcdir/Shapely-$_pkgverbase$_pkgversuffix"

build() {
	rm -r _vendor  # This is provided by py3-packaging

	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="027c816ef2104f654569ca658b52b87c60e5ba6a45927fcc51c23dd1922f3f9f7fdcea3601160b0a999e39611617142833ccac790777093be8b96a0d9083f78f  Shapely-1.6.4.post2.tar.gz
7cebaf4e059d71e1cd374539eb056491afbf736e05bf369a3c6533306885940d108340ada56ec7662e30aac04d2bd3ac4019ccf2fc447151d2274009d93d00fe  10-packaging.patch
5b345c1bfdada6c4729195ba8bcf468e8253281293e314cfa46295face63e7d5baeeedadae20026749530c1a92575fa222637b5c77b5751e6c7ae751ee88f743  skip-test-that-fails-with-python-3.8.patch"