diff --git a/srcpkgs/python-plotly/template b/srcpkgs/python-plotly/template new file mode 100644 index 0000000000..dc18189c59 --- /dev/null +++ b/srcpkgs/python-plotly/template @@ -0,0 +1,37 @@ +# Template file for 'python-plotly' +pkgname=python-plotly +version=2.2.0 +revision=1 +noarch=yes +#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 " +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() { + noarch=yes + 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 + } +} + diff --git a/srcpkgs/python3-plotly b/srcpkgs/python3-plotly new file mode 120000 index 0000000000..8d444272b8 --- /dev/null +++ b/srcpkgs/python3-plotly @@ -0,0 +1 @@ +python-plotly \ No newline at end of file