# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-contourpy pkgver=1.0.7 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="python3 py3-numpy" makedepends="py3-setuptools py3-pybind11-dev python3-dev" checkdepends="pytest py3-matplotlib" 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() { python3 setup.py build } check() { python3 -m venv --clear --without-pip --system-site-packages test-env test-env/bin/python3 setup.py install test-env/bin/python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 64edcfc911b3d7af9b422058d1f595c05d64f7fca8511ea199d30fa52854aee53a7c7dd95e2f47964f57e7764ce6b7b05c8ccee5ed0309eb5daa822d488ce0ff py3-contourpy-1.0.7.tar.gz "