# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer:
pkgname=jupyter-notebook-shim
pkgver=0.2.4
pkgrel=1
pkgdesc="Shim layer for notebook traits and config"
url="https://github.com/jupyter/notebook_shim"
arch="noarch"
license="BSD-3-Clause"
depends="jupyter-server"
makedepends="py3-gpep517 py3-installer py3-hatchling"
checkdepends="py3-pytest py3-pytest-jupyter py3-pytest-tornasync"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/notebook_shim/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/notebook_shim-$pkgver"

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

check() {
	pytest
}

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

sha512sums="
2baa4e5931ab69b69c63cb1febd67aff9032a9d0cad50c5d467122027ffa767dff84e4436c7aad599c361f8a32bb241bfde06532a4abe243044c98ff9fb4b65f  jupyter-notebook-shim-0.2.4.tar.gz
"
