From 2775c18861c90dae2a6f3b6056a74fb705fc5461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 23 May 2023 23:14:55 -0300 Subject: [PATCH] python3-ipyparallel: enable check --- srcpkgs/python3-ipyparallel/template | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3-ipyparallel/template b/srcpkgs/python3-ipyparallel/template index 9c86bba760a04..286d38be7a5c9 100644 --- a/srcpkgs/python3-ipyparallel/template +++ b/srcpkgs/python3-ipyparallel/template @@ -7,6 +7,9 @@ hostmakedepends="hatchling" depends="python3-entrypoints python3-decorator python3-pyzmq python3-traitlets python3-ipython python3-jupyter_client python3-ipython_ipykernel python3-tornado python3-psutil python3-dateutil python3-tqdm" +checkdepends="$depends python3-pytest python3-pytest-asyncio + python3-testpath python3-matplotlib python3-joblib python3-numpy + python3-pandas" short_desc="Interactive parallel computing in Python" maintainer="Andrew J. Hesford " license="BSD-3-Clause" @@ -14,8 +17,16 @@ homepage="https://ipyparallel.readthedocs.io/" changelog="https://ipyparallel.readthedocs.io/en/latest/changelog.html" distfiles="${PYPI_SITE}/i/ipyparallel/ipyparallel-${version}.tar.gz" checksum=a39aa5ef9560170bf0e9afedca9ff045e1b9c1832c49303377edcc91cea9fb77 -# Too many tests fail with a "local" cluster type -make_check=no + +if [[ "$XBPS_TARGET_MACHINE" = *-musl ]]; then + # this test fails in musl, locally and on ci + make_check_args="-k not(test_ipcluster_start_stop)" +fi + +pre_check() { + # having HOME=/tmp confuses a few tests + HOME=/home +} post_install() { vlicense COPYING.md