Date: Sunday, October 30, 2022 @ 17:28:51 Author: arojas Revision: 1339562
New matplotlib dependency Added: python-contourpy/ python-contourpy/trunk/ python-contourpy/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-contourpy/trunk/PKGBUILD =================================================================== --- python-contourpy/trunk/PKGBUILD (rev 0) +++ python-contourpy/trunk/PKGBUILD 2022-10-30 17:28:51 UTC (rev 1339562) @@ -0,0 +1,34 @@ +# Maintainer: Antonio Rojas <[email protected]> + +_pyname=contourpy +pkgname=python-$_pyname +pkgver=1.0.6 +pkgrel=1 +pkgdesc='Python library for calculating contours in 2D quadrilateral grids' +arch=(x86_64) +url='https://github.com/contourpy/contourpy' +license=(BSD) +makedepends=(python-build python-installer python-setuptools pybind11 python-wheel) +depends=(python-numpy) +checkdepends=(python-pytest python-matplotlib) +optdepends=('python-matplotlib: matplotlib renderer') +source=(https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz) +sha256sums=('6e459ebb8bb5ee4c22c19cc000174f8059981971a33ce11e17dddf6aca97a142') + +build() { + cd $_pyname-$pkgver + python -m build --wheel --no-isolation +} + +check() { + cd $_pyname-$pkgver + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest -v +} + +package() { + cd $_pyname-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +}
