Skip to content

Instantly share code, notes, and snippets.

@NicoHood
Created June 5, 2017 16:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save NicoHood/a8254fa2f922d780e74b5b9f5293c92d to your computer and use it in GitHub Desktop.
python-plotly
# 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