39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'python3-contourpy'
|
|
pkgname=python3-contourpy
|
|
version=1.2.1
|
|
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=4d8908b3bee1c889e547867ca4cdc54e5ab6be6d3e078556814a22457f49423c
|
|
|
|
# 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
|
|
}
|