# Maintainer: Rich Li pkgname='python-xarray' pkgver=0.11.2 pkgrel=1 pkgdesc="N-D labeled arrays and datasets in Python" url="http://xarray.pydata.org" arch=('any') license=('Apache') makedepends=('python-setuptools') depends=('python-numpy' 'python-pandas') optdepends=('python-netcdf4: NetCDF4 support' 'python-bottleneck: Faster NaN operations' # 'python-pynio: GRIB and other file format support' # (no Python 3 support yet) 'python-scipy: OPeNDAP support' 'python-matplotlib: Plotting support' 'python-dask: Enable out-of-core parallel computation') checkdepends=('python-pytest') replaces=('python-xray') #source=(https://pypi.python.org/packages/source/x/xarray/xarray-"$pkgver".tar.gz) # I'm using the Github source instead of the PyPI source since the Github source includes the data files used for testing source=("$pkgname-$pkgver.tar.gz::https://github.com/pydata/xarray/archive/v$pkgver.tar.gz") md5sums=('ef65b6140d42a7d83debb310713869df') sha1sums=('eec9a96b6482151c1123b728a656462ab1361d4f') sha256sums=('f171df10e818ce0c7b73fda0e1739176a5c85a4a54a9e39d74e060f3b1593643') build() { cd "$srcdir/xarray-$pkgver" python setup.py build } # NB: the default test suite seems to require dask being installed # check() { # cd "$srcdir/xarray-$pkgver" # pytest --disable-warnings xarray # } package() { cd "$srcdir/xarray-$pkgver" python setup.py install --skip-build --prefix=/usr --root="$pkgdir/" --optimize=1 } # vim:set ts=2 sw=2 et: