summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb3ec02e658ea8ec5427d6ea844973f3b5b1f684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: Anselmo L. S. Melo <anselmolsm@gmail.com>

pkgname="python-plotly-git"
pkgver=5.1.0.r6.g17b7c27f9
pkgrel=2
pkgdesc="An open-source, interactive graphing library"
arch=("any")
url="https://plot.ly/python/"
license=("MIT")
makedepends=("git" "npm" "python-jupyter_core" "jupyterlab" "python-setuptools" "python-build" "python-wheel" "python-installer" "python-tornado>=6.1.0")
provides=("python-plotly")
conflicts=("python-plotly")
depends=("python>=3.6" "python-matplotlib" "python-numpy" "python-tenacity")
optdepends=("ipython" "python-ipywidgets")
source=("git+https://github.com/plotly/plotly.py.git")
sha256sums=("SKIP")
options=("!strip")

pkgver(){
 cd "plotly.py"
 git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build(){
 cd "plotly.py/packages/python/plotly"
 python -m build --wheel --no-isolation
}

package(){
 cd "plotly.py/packages/python/plotly"
 python -m installer --destdir="$pkgdir" dist/*.whl
}