1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/py3-shapely/APKBUILD
2019-09-27 22:05:42 -03:00

53 lines
1.4 KiB
Text

# 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"