# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer:
pkgname=py3-ipykernel
pkgver=6.29.5
pkgrel=0
pkgdesc="IPython kernel for jupyter"
url="https://github.com/ipython/ipykernel"
arch="noarch"
license="BSD-3-Clause"
depends="
	ipython
	py3-comm
	py3-jupyter_client
	py3-jupyter_core
	py3-matplotlib-inline
	py3-nest_asyncio
	py3-packaging
	py3-psutil
	py3-pyzmq
	py3-tornado
	py3-traitlets
	"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-ipyparallel py3-pytest py3-flaky py3-pytest-timeout py3-pytest-asyncio"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/ipykernel/releases/download/v$pkgver/ipykernel-$pkgver.tar.gz
	deprecation-warnings.patch"
builddir="$srcdir/ipykernel-$pkgver"
options="!check" # py3-ipyparallel is circular, and an optional dep

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest \
		--deselect ipykernel/tests/test_kernel.py::test_shutdown_subprocesses
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
271232ad6168ff00d6eb729bb38804f6a030b85be9bd75341b4af8ca1feb9f3c6b088eff77f4efcc503512559c93f1d78c13904089b7acb5205c4039daf0cea0  py3-ipykernel-6.29.5.tar.gz
5e1ccda828995dabc4e156dcb8e3f53bd99dcdfff6d109e9278d7daecd63db7b7973d5652ff68c180d7147d54cb42b66841e5bca0560078d38b698d93995be4e  deprecation-warnings.patch
"
