diff options
author | Rich Li | 2015-06-08 14:35:14 -0600 |
---|---|---|
committer | Richard Lindsley | 2015-06-08 14:35:14 -0600 |
commit | 848894a8b58d7385ecef452c6c1c256ff760cef2 (patch) | |
tree | 15f2bd522c88d101751b546b495e164491633cd5 | |
download | aur-848894a8b58d7385ecef452c6c1c256ff760cef2.tar.gz |
Import version 0.4.1 from old AUR
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c0dd053db2c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python2-xray + pkgdesc = N-D labeled arrays and datasets in Python + pkgver = 0.4.1 + pkgrel = 1 + url = https://pypi.python.org/pypi/xray + arch = any + license = Apache + checkdepends = python2-nose + makedepends = python2-setuptools + depends = python2-numpy + depends = python2-pandas + optdepends = python2-netcdf4: NetCDF4 support + optdepends = python2-bottleneck: Faster NaN operations + optdepends = python2-cyordereddict: Speed up most internal operations + optdepends = python2-scipy: OPeNDAP support + source = https://github.com/xray/xray/archive/v0.4.1.tar.gz + md5sums = b124d83249156c60de73dafc5be712e8 + +pkgname = python2-xray + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..13efd2f64d6a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Rich Li <rich@dranek.com> +pkgname='python2-xray' +pkgver=0.4.1 +pkgrel=1 +pkgdesc="N-D labeled arrays and datasets in Python" +url="https://pypi.python.org/pypi/xray" +arch=('any') +license=('Apache') +makedepends=('python2-setuptools') +depends=('python2-numpy' 'python2-pandas') +optdepends=('python2-netcdf4: NetCDF4 support' + 'python2-bottleneck: Faster NaN operations' + 'python2-cyordereddict: Speed up most internal operations' + 'python2-scipy: OPeNDAP support') +checkdepends=('python2-nose') +#source=(https://pypi.python.org/packages/source/x/xray/xray-"$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=(https://github.com/xray/xray/archive/v"$pkgver".tar.gz) +md5sums=('b124d83249156c60de73dafc5be712e8') + +build() { + cd "$srcdir/xray-$pkgver" + python2 setup.py build +} + +check() { + cd "$srcdir/xray-$pkgver" + nosetests2 +} + +package() { + cd "$srcdir/xray-$pkgver" + python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |