projects/aports·blob master · refs

56 lines · 1.4 KiB

1# Maintainer: Alistair Francis <[email protected]>
2pkgname=py3-plotly
3_pyname=plotly.py
4pkgver=5.24.1
5pkgrel=2
6pkgdesc="An interactive, open-source, and browser-based graphing library for Python"
7url="https://jupyterlab.readthedocs.io/en/latest/"
8# webpack segfaults on riscv64
9arch="all !riscv64"
10license="MIT"
11depends="python3 py3-flask"
12makedepends="
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 "
31checkdepends="py3-pytest py3-setuptools py3-pexpect py3-numpy py3-pytest-jupyter"
32source="py3-plotly-$pkgver.tar.gz::https://github.com/plotly/plotly.py/archive/refs/tags/v$pkgver.tar.gz"
33builddir="$srcdir"/$_pyname-$pkgver
34
35
36build() {
37 cd packages/python/plotly
38 gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
39}
40
41check() {
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
49package() {
50 cd packages/python/plotly
51 python3 -m installer --destdir="$pkgdir" .dist/*.whl
52}
53
54sha512sums="
55dc1484f5b0630bd4d936ab23231be7a577b887701f1f3c33d8f6501dc65718d871bee7af9f467fe130d2e7dcdded22717562352ce4ec70d25bc368faeb51d0e8 py3-plotly-5.24.1.tar.gz
56"