2024-12-29 09:20:25 -05:00

39 lines
1.2 KiB
Bash

# Template file for 'python3-contourpy'
pkgname=python3-contourpy
version=1.3.1
revision=1
build_style=python3-pep517
build_helper=meson
hostmakedepends="python3-meson-python python3-pybind11 pkg-config"
makedepends="python3-pybind11"
depends="python3-numpy"
checkdepends="${depends} python3-pytest-xdist"
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=dfd97abd83335045a913e3bcc4a09c0ceadbe66580cf573fe961f4a825efa699
# 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
}