# Contributor: Lex Black # Contributor: Clint Valentine _name=toyplot pkgbase='python-toyplot' pkgname=('python-toyplot' 'python2-toyplot') pkgver=0.18.0 pkgrel=1 pkgdesc="modern Python plotting toolkit supporting electronic publishing and reproducibility" arch=('any') url="http://toyplot.readthedocs.io/" license=('custom:sandia') makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') options=(!emptydirs) source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz https://raw.githubusercontent.com/sandialabs/toyplot/89a17d4b4ab39e7d02383426264119f523540859/LICENSE) sha256sums=('f3c07ed64609fa8747210421717b241c808da2fc5d296615c83bf422faca9e90' '3f2c149ada89dc7874788fc3aee58ba5a1849fb2f44ba722f6a0a314b401c31f') prepare() { cp -a toyplot-"${pkgver}"{,-py2} } build(){ cd "${srcdir}"/toyplot-"${pkgver}" python setup.py build cd "${srcdir}"/toyplot-"${pkgver}"-py2 python2 setup.py build } package_python2-toyplot() { depends=('python2' 'python2-arrow' 'python2-custom_inherit' 'python2-multipledispatch' 'python2-numpy' 'python2-reportlab' 'python2-six') install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE cd toyplot-"${pkgver}"-py2 python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build } package_python-toyplot() { depends=('python' 'python-arrow' 'python-custom_inherit' 'python-multipledispatch' 'python-numpy' 'python-reportlab' 'python-six') install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE cd toyplot-"${pkgver}" python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build }