diff --git a/srcpkgs/python3-contourpy/template b/srcpkgs/python3-contourpy/template new file mode 100644 index 00000000000..84fb3c9d6af --- /dev/null +++ b/srcpkgs/python3-contourpy/template @@ -0,0 +1,34 @@ +# Template file for 'python3-contourpy' +pkgname=python3-contourpy +version=1.0.5 +revision=1 +wrksrc="contourpy-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-pybind11" +makedepends="python3-pybind11" +depends="python3" +checkdepends="${depends} python3-pytest-xdist python3-numpy" +short_desc="Python library for calculating contours of 2D quadrilateral grids" +maintainer="Alex Childs " +license="BSD-3-Clause" +homepage="https://github.com/contourpy/contourpy" +distfiles="${PYPI_SITE}/c/contourpy/contourpy-${version}.tar.gz" +checksum=896631cd40222aef3697e4e51177d14c3709fda49d30983269d584f034acc8a4 + +# Pulling python3-matplotlib creates a build-time dependency +if [ "$XBPS_CHECK_PKGS" = full ]; then + checkdepends+=" python3-matplotlib" +else + # These tests require matplotlib + make_check_args+=" + --ignore=tests/test_config.py + --ignore=tests/test_filled.py + --ignore=tests/test_lines.py + --ignore=tests/test_renderer.py + " +fi + + +post_install() { + vlicense LICENSE +}