1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/jupyter-nbclient/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

40 lines
1.1 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-nbclient
pkgver=0.7.2
pkgrel=0
pkgdesc="Client library for executing notebooks"
url="https://github.com/jupyter/nbclient"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-jupyter_client
jupyter-nbformat
py3-nest_asyncio
py3-traitlets
"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest py3-xmltodict jupyter-nbconvert py3-ipykernel"
options="!check" # circular dependency with jupyter-nbconvert
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/nbclient/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/nbclient-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest \
--deselect nbclient/tests/test_client.py::TestExecute::test_widgets \
--deselect nbclient/tests/test_client.py::test_run_all_notebooks
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
17f1bfbfa156688e895ab1a0d0f74903f43c62a373a40cfcc50a654d86ebbaeb5ed101562716140a3878a9667bb131c49e06caf2e3127160700baf181cd1c29b jupyter-nbclient-0.7.2.tar.gz
"