# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer:
pkgname=jupyter-server-terminals
pkgver=0.5.3
pkgrel=1
pkgdesc="Jupyter server extension for terminals"
url="https://github.com/jupyter-server/jupyter_server_terminals"
arch="noarch"
license="BSD-3-Clause"
depends="py3-terminado"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest jupyter-server"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter-server/jupyter_server_terminals/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter_server_terminals-$pkgver"
options="!check" # circular dependency on jupyter-server

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

check() {
	pytest
}

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

sha512sums="
e772488e93984fe6a8537d09e28cee68e2f623831d9e2eca576de1421c194777975b00dadf241eb99918e1905c46a9bf616e2de2655bca0dbaf25cac42edea16  jupyter-server-terminals-0.5.3.tar.gz
"
