39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'python3-contourpy'
|
|
pkgname=python3-contourpy
|
|
version=1.1.1
|
|
revision=2
|
|
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=96ba37c2e24b7212a77da85004c38e7c4d155d3e72a45eeaf22c1f03f607e8ab
|
|
|
|
# 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
|
|
}
|