void-packages/srcpkgs/python-plotly/template

38 lines
1.2 KiB
Bash

# Template file for 'python-plotly'
pkgname=python-plotly
version=2.2.0
revision=1
archs=noarch
#wrksrc="${pkgname#*-}-${version}"
wrksrc="plotly.py-${version}"
build_style=python-module
pycompile_module="plotly"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-six python-requests python-pytz python-decorator python-jupyter_nbformat"
short_desc="Python2 plotting library for collaborative, interactive graphs"
maintainer="pulux <pulux@pf4sh.de>"
license="MIT"
homepage="https://plot.ly/python/"
#odistfiles="${PYPI_SITE}/p/plotly/plotly-${version}.tar.gz"
#checksum=aee7044a5c70989940d24bbbb12469b2ab2dbf41b9dff652052327fe1168b3cc
#pypi has no LICENSE.txt
distfiles="https://github.com/plotly/plotly.py/archive/v${version}.tar.gz"
checksum=dad2a49fe355dddb6ae159e96c10ac22413a33cbac513b4dbf3791e63ec33c1f
post_install() {
vlicense LICENSE.txt
}
python3-plotly_package() {
archs=noarch
pycompile_module="plotly"
depends="python3-setuptools python3-six python3-requests python3-pytz python3-decorator python3-jupyter_nbformat"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}