| 1 | # Maintainer: Alistair Francis <[email protected]> |
| 2 | pkgname=py3-plotly |
| 3 | _pyname=plotly.py |
| 4 | pkgver=5.24.1 |
| 5 | pkgrel=2 |
| 6 | pkgdesc="An interactive, open-source, and browser-based graphing library for Python" |
| 7 | url="https://jupyterlab.readthedocs.io/en/latest/" |
| 8 | # webpack segfaults on riscv64 |
| 9 | arch="all !riscv64" |
| 10 | license="MIT" |
| 11 | depends="python3 py3-flask" |
| 12 | makedepends=" |
| 13 | npm |
| 14 | nodejs |
| 15 | yarn |
| 16 | py3-pip |
| 17 | py3-gpep517 |
| 18 | py3-installer |
| 19 | py3-poetry-core |
| 20 | py3-wheel |
| 21 | py3-setuptools |
| 22 | py3-hatchling |
| 23 | py3-hatch-jupyter-builder |
| 24 | jupyter-server |
| 25 | py3-jupyterlab3 |
| 26 | py3-jupyterlab_server |
| 27 | py3-rpds-py |
| 28 | jupyter-nbclassic |
| 29 | py-pandas |
| 30 | " |
| 31 | checkdepends="py3-pytest py3-setuptools py3-pexpect py3-numpy py3-pytest-jupyter" |
| 32 | source="py3-plotly-$pkgver.tar.gz::https://github.com/plotly/plotly.py/archive/refs/tags/v$pkgver.tar.gz" |
| 33 | builddir="$srcdir"/$_pyname-$pkgver |
| 34 | |
| 35 | |
| 36 | build() { |
| 37 | cd packages/python/plotly |
| 38 | gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 |
| 39 | } |
| 40 | |
| 41 | check() { |
| 42 | cd packages/python/plotly |
| 43 | python3 -m venv --clear --without-pip --system-site-packages testenv |
| 44 | testenv/bin/python3 -m installer .dist/*.whl |
| 45 | testenv/bin/python3 -m pytest -v plotly/tests/test_core |
| 46 | } |
| 47 | |
| 48 | |
| 49 | package() { |
| 50 | cd packages/python/plotly |
| 51 | python3 -m installer --destdir="$pkgdir" .dist/*.whl |
| 52 | } |
| 53 | |
| 54 | sha512sums=" |
| 55 | dc1484f5b0630bd4d936ab23231be7a577b887701f1f3c33d8f6501dc65718d871bee7af9f467fe130d2e7dcdded22717562352ce4ec70d25bc368faeb51d0e8 py3-plotly-5.24.1.tar.gz |
| 56 | " |