# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-contourpy pkgver=1.1.0 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" 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 test-env test-env/bin/python3 -m installer .dist/*.whl test-env/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" aeb60db039aa14aed29a31dcf6091708daf7e65589964dd7682dc28e085d584103abb872e607685408eaefd4947adeba966c9a0d93cb1f827805189e498c67d8 py3-contourpy-1.1.0.tar.gz "