void-packages/srcpkgs/python3-ipython_ipykernel/template

43 lines
1.5 KiB
Bash

# Template file for 'python3-ipython_ipykernel'
pkgname=python3-ipython_ipykernel
version=6.29.4
revision=1
build_style=python3-pep517
# this test fails with ipython 8.24 (tests a deprecated feature)
make_check_args="
--deselect tests/inprocess/test_kernel.py::test_pylab"
hostmakedepends="hatchling python3-jupyter_client"
depends="python3-comm python3-ipython python3-jupyter_client
python3-nest_asyncio python3-packaging python3-psutil python3-tornado"
checkdepends="$depends python3-flaky python3-pytest-asyncio
python3-pytest-timeout python3-trio python3-curio python3-matplotlib
python3-PyQt5 python3-PyQt5-svg"
short_desc="IPython kernel for Jupyter"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://github.com/ipython/ipykernel"
changelog="https://raw.githubusercontent.com/ipython/ipykernel/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz"
checksum=3d44070060f9475ac2092b760123fadf105d2e2493c24848b6691a7c4f42af5c
if [ "$XBPS_CHECK_PKGS" = full ]; then
# this would cause a build-time circular dependency
checkdepends+=" python3-ipyparallel"
else
# These tests require ipyparallel
make_check_args+="
--ignore tests/test_pickleutil.py
--deselect tests/test_ipkernel_direct.py::test_do_apply
"
fi
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ] &&
[ "$XBPS_TARGET_LIBC" = "musl" ]; then
# Also fails "on Windows and MacOS Python 3.8+" so just disable it
make_check_args+=" --deselect tests/test_kernel.py::test_subprocess_print"
fi
post_install() {
vlicense LICENSE
}