mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 16:52:06 +01:00
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
|
|
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
|
|
pkgname=py3-shapely
|
|
pkgver=2.0.2
|
|
pkgrel=0
|
|
pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
|
|
url="https://pypi.org/project/Shapely"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-numpy
|
|
"
|
|
makedepends="
|
|
cython
|
|
geos-dev
|
|
py3-gpep517
|
|
py3-matplotlib
|
|
py3-numpy-dev
|
|
py3-packaging
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/s/shapely/shapely-$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/shapely-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
mv shapely backup
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -x
|
|
mv backup shapely
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/shapely/tests
|
|
}
|
|
|
|
sha512sums="
|
|
8102f9b20acbd6e98ad66ecb46e84e1377e32fb30c120f0c120a54123f6b876464a1f19ff8ddc8ff25796126f08f994d9dd7f4f7115338d740a47d1637764fbc shapely-2.0.2.tar.gz
|
|
"
|