# Contributor: Aiden Grossman # Maintainer: Aiden Grossman pkgname=py3-jupyter_client pkgver=8.3.0 pkgrel=1 pkgdesc="Jupyter protocol client APIs" url="https://github.com/jupyter/jupyter_client" arch="noarch" license="BSD-3-Clause" depends=" py3-dateutil py3-jupyter_core py3-pyzmq py3-tornado py3-traitlets " makedepends="py3-gpep517 py3-hatchling" checkdepends=" ipython openssh py3-ipykernel py3-pytest py3-pytest-asyncio py3-pytest-jupyter py3-pytest-timeout " # circular dependency with py3-ipykernel options="!check" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/jupyter_client/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/jupyter_client-$pkgver/" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { # first test fails on empty queue, more investigation needed # last test has a file descriptor related error, more investigation needed # other tests all hit their specified timeout pytest -vv \ --deselect tests/test_kernelmanager.py::TestKernelManager::test_signal_kernel_subprocesses \ --deselect tests/test_kernelmanager.py::TestParallel::test_start_parallel_thread_kernels \ --deselect tests/test_kernelmanager.py::TestParallel::test_start_sequence_kernels \ --deselect tests/test_kernelmanager.py::TestParallel::test_start_parallel_process_kernels \ --deselect tests/test_kernelmanager.py::TestParallel::test_start_sequence_process_kernels \ --deselect tests/test_kernelmanager.py::TestAsyncKernelManager::test_signal_kernel_subprocesses \ --deselect tests/test_multikernelmanager.py::TestKernelManager::test_tcp_cinfo } package() { python3 -m installer --destdir="$pkgdir" .dist/*.whl } sha512sums=" aa0c7d8a7511c5a99116c343a60e6c30a178ea52145a6f3dd854a400a1cddd0bedf4c6fef79021dc2d0ce85a43765285e7c9542af45f965031a0235f0c76d7ba py3-jupyter_client-8.3.0.tar.gz "