# Maintainer: Alistair Francis pkgname=py3-plotly _pyname=plotly.py pkgver=5.24.1 pkgrel=2 pkgdesc="An interactive, open-source, and browser-based graphing library for Python" url="https://jupyterlab.readthedocs.io/en/latest/" # webpack segfaults on riscv64 arch="all !riscv64" license="MIT" depends="python3 py3-flask" makedepends=" npm nodejs yarn py3-pip py3-gpep517 py3-installer py3-poetry-core py3-wheel py3-setuptools py3-hatchling py3-hatch-jupyter-builder jupyter-server py3-jupyterlab3 py3-jupyterlab_server py3-rpds-py jupyter-nbclassic py-pandas " checkdepends="py3-pytest py3-setuptools py3-pexpect py3-numpy py3-pytest-jupyter" source="py3-plotly-$pkgver.tar.gz::https://github.com/plotly/plotly.py/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver build() { cd packages/python/plotly gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 } check() { cd packages/python/plotly python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer .dist/*.whl testenv/bin/python3 -m pytest -v plotly/tests/test_core } package() { cd packages/python/plotly python3 -m installer --destdir="$pkgdir" .dist/*.whl } sha512sums=" dc1484f5b0630bd4d936ab23231be7a577b887701f1f3c33d8f6501dc65718d871bee7af9f467fe130d2e7dcdded22717562352ce4ec70d25bc368faeb51d0e8 py3-plotly-5.24.1.tar.gz "