aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-shapely/APKBUILD
blob: 3f103862c831527f8442e94a1d3db0bb51e4bae2 (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
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
_pkgname=shapely
pkgname=py3-$_pkgname
_pkgverbase=1.6.4
_pkgversuffix=.post2
_pkgveralpinesuffix=.p2
pkgver=${_pkgverbase}${_pkgveralpinesuffix}
pkgrel=0
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
url="https://pypi.python.org/pypi/Shapely"
arch="all"
license="BSD-3-Clause"
depends="
	py3-numpy
	"
makedepends="
	geos-dev
	py3-matplotlib
	py3-numpy-dev
	py3-packaging
	py3-setuptools
	python3-dev
	cython3
	"
checkdepends="
	py3-pytest
	"
source="
	https://pypi.io/packages/source/S/Shapely/Shapely-${_pkgverbase}${_pkgversuffix}.tar.gz
	10-packaging.patch
	"
builddir="$srcdir/Shapely-${_pkgverbase}${_pkgversuffix}"

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

	python3 setup.py build
}

check() {
	# 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"