python-plotly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> | |
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 | |
# Contributor: fclad <fcladera at fcladera.com> | |
_pkgname=python-plotly | |
_pypiname=plotly | |
pkgbase=python-plotly | |
pkgname=('python-plotly' 'python2-plotly') | |
pkgver=2.0.9 | |
pkgrel=1 | |
url="https://plot.ly/python/" | |
license=('MIT') | |
arch=("any") | |
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') | |
source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz" | |
"LICENSE") | |
sha512sums=('0353091e204cbd42b2f425a739d58b8c35087045ceced229b594178706695009588f7a92a62f83583db2a5629570d9823dc9ff4687e270e790dcedaacf6a8556' | |
'1f27d546f594955e443a3d8a72aa4f18afa9d946336a9fd0585de3c8120e3ef262ce109eea0ee8d97510616864b8d01f8e4d48ebc0fc1486fd490bf8ba3a7f89') | |
#validpgpkeys=('') # TODO https://github.com/plotly/plotly.py/issues/764 | |
prepare() { | |
# Create a copy for the python2 package | |
cp -r "${_pypiname}-${pkgver}" "python2-${_pypiname}-${pkgver}" | |
} | |
package_python-plotly() { | |
pkgdesc="An interactive, browser-based graphing library for Python3" | |
depends=('python' 'python-requests' 'python-pytz' 'python-six') | |
cd "${srcdir}/${_pypiname}-${pkgver}" | |
python setup.py install --root="${pkgdir}" --optimize=1 | |
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} | |
package_python2-plotly() { | |
pkgdesc="An interactive, browser-based graphing library for Python2" | |
depends=('python2' 'python2-requests' 'python2-pytz' 'python2-six') | |
cd "${srcdir}/python2-${_pypiname}-${pkgver}" | |
python2 setup.py install --root="${pkgdir}" --optimize=1 | |
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment