void-packages/srcpkgs/python3-contourpy/template

39 lines
1.2 KiB
Bash

# Template file for 'python3-contourpy'
pkgname=python3-contourpy
version=1.2.0
revision=1
build_style=python3-pep517
build_helper=meson
hostmakedepends="python3-meson-python python3-pybind11 pkg-config"
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 <misuchiru03+github@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/contourpy/contourpy"
changelog="https://raw.githubusercontent.com/contourpy/contourpy/main/docs/changelog.rst"
distfiles="${PYPI_SITE}/c/contourpy/contourpy-${version}.tar.gz"
checksum=171f311cb758de7da13fc53af221ae47a5877be5a0843a9fe150818c51ed276a
# This test needs `wurlitzer`, not packaged
make_check_args="--deselect=tests/test_internal.py::test_write_cache"
# 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
}