1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 01:35:13 +03:00
aports/community/py3-contourpy/APKBUILD
2024-12-31 14:43:22 +00:00

40 lines
1.3 KiB
Text

# Contributor: Aiden Grossman <agrossma154@yahoo.com>
# Maintainer:
pkgname=py3-contourpy
pkgver=1.3.1
pkgrel=0
pkgdesc="Python library for calculating contours in 2D quadrilateral grids Resources"
url="https://github.com/contourpy/contourpy"
arch="all"
license="BSD-3-Clause"
depends="py3-numpy"
makedepends="py3-gpep517 py3-meson-python py3-pybind11-dev python3-dev"
checkdepends="pytest py3-matplotlib py3-wurlitzer"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/contourpy/contourpy/archive/refs/tags/v$pkgver.tar.gz
mesonpy-fix.patch
"
builddir="$srcdir/contourpy-$pkgver"
options="!check" # circular dependency with matplotlib
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
09dbb934c65280722312ce002198bb294bb543febba28a2fd874d4b9feb3d837a802c68614703acf6131f799047254a16a4c932cd694d7d55e5a946a49cc8f3a py3-contourpy-1.3.1.tar.gz
7c97e6bda9e6805c97fd6241714cac290db4f38838111490737654a47fdaf8a21a4ebf82af6a096b8846c49e4542fad79d4dc61f236d3ab364d6f63defe1edd3 mesonpy-fix.patch
"