summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 7 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8dca5c58604..2b12aed3d34 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,19 @@
# Maintainer: Ross Whitfield <whitfieldre@ornl.gov>
-pkgname=('python-nexpy' 'python2-nexpy')
+pkgname='python-nexpy'
_pkgname=nexpy
-pkgver=0.10.10
-pkgrel=2
+pkgver=0.11.0
+pkgrel=1
pkgdesc="NeXpy: A Python GUI to analyze NeXus data"
url="http://nexpy.github.io/nexpy"
arch=("any")
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+makedepends=('python-setuptools' 'python-six')
+depends=('python-numpy' 'python-h5py' 'python-scipy' 'python-nexusformat' 'jupyter' 'python-matplotlib' 'python-ansi2html')
source=("https://github.com/nexpy/nexpy/archive/v${pkgver}.tar.gz")
-md5sums=('43bfc04c709eb5b8605215ed182af716')
+md5sums=('521fe3378577dbc0578d412aa71d3a3b')
-prepare() {
- cp -a "${srcdir}/$_pkgname-$pkgver"{,-py2}
-}
-
-package_python-nexpy() {
- depends=('python-numpy' 'python-h5py' 'python-scipy' 'python-nexusformat' 'jupyter' 'python-matplotlib' 'python-ansi2html')
+package() {
cd "$srcdir/$_pkgname-$pkgver"
sed -i 's/jupyter/jupyter_core/' src/nexpy/requires.py # Can't find jupyter at run time
python setup.py install --root="$pkgdir/" --optimize=1
}
-
-package_python2-nexpy() {
- depends=('python2-numpy' 'python2-h5py' 'python2-scipy' 'python2-nexusformat' 'ipython2-notebook' 'python2-matplotlib' 'python2-subprocess32')
- cd "$srcdir/$_pkgname-$pkgver-py2"
- sed -i 's/jupyter/jupyter_core/' src/nexpy/requires.py # Can't find jupyter at run time
- sed -i '/ansi2html/d' src/nexpy/requires.py # remove ansi2html from requires
- python2 setup.py install --root="$pkgdir/" --optimize=1
- # Conflict with python3 version
- mv $pkgdir/usr/bin/nexpy{,2}
-}