mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 05:20:32 +01:00
46 lines
1.9 KiB
Bash
46 lines
1.9 KiB
Bash
# 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')
|
|
pkgdesc="An interactive, browser-based graphing library for Python"
|
|
pkgver=3.7.1
|
|
pkgrel=1
|
|
url="https://plot.ly/python/"
|
|
license=('MIT')
|
|
arch=("any")
|
|
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 'python-numpy' 'python-pytz' 'python-requests' 'python-retrying' 'python2-numpy' 'python2-pytz' 'python2-requests')
|
|
source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
|
|
sha512sums=('ca9a3b289ee073dd0c3590e3dd7bf5733e0fe3336e8f226f0bc8d114a8bc7ef580677dcef47a3ac33c5b992b9b96ba63eb613c1969d9a46052e4dc23d1272a5f')
|
|
#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'
|
|
'python-numpy' 'python-retrying')
|
|
|
|
cd "${srcdir}/${_pypiname}-${pkgver}"
|
|
python setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -Dm644 "${srcdir}/${_pypiname}-${pkgver}/LICENSE.txt" "${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'
|
|
'python2-numpy' 'python-retrying')
|
|
|
|
cd "${srcdir}/python2-${_pypiname}-${pkgver}"
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -Dm644 "${srcdir}/python2-${_pypiname}-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|