void-packages/srcpkgs/python3-ipython_ipykernel/template

44 lines
1.6 KiB
Bash

# Template file for 'python3-ipython_ipykernel'
pkgname=python3-ipython_ipykernel
version=6.29.3
revision=1
build_style=python3-pep517
# these tests fail in 6.28.0
make_check_args="
--deselect tests/test_eventloop.py::test_asyncio_interrupt
--deselect tests/test_embed_kernel.py::test_embed_kernel_func
--deselect tests/test_kernelspec.py::test_install_kernelspec"
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=e14c250d1f9ea3989490225cc1a542781b095a18a19447fcf2b5eaf7d0ac5bd2
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_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
}