summaryrefslogtreecommitdiff
path: root/python-pyfai/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-pyfai/PKGBUILD')
-rw-r--r--python-pyfai/PKGBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/python-pyfai/PKGBUILD b/python-pyfai/PKGBUILD
index 0d085e008..2725e6d22 100644
--- a/python-pyfai/PKGBUILD
+++ b/python-pyfai/PKGBUILD
@@ -5,7 +5,7 @@ pkgbase=python-pyfai
pkgname=(python2-pyfai python-pyfai)
_pkgname=pyFAI
pkgver=0.18.0
-pkgrel=2
+pkgrel=3
pkgdesc="Fast Azimuthal Integration in Python."
arch=('i686' 'pentium4' 'x86_64')
url="http://www.silx.org"
@@ -23,14 +23,20 @@ _depends=(
'cython'
'python-fabio'
'python-h5py'
+ 'python-ipympl'
'python-matplotlib'
'python-numexpr'
'python-numpy'
+ 'python-opengl'
+ 'python-pyopencl'
'python-scipy'
'python-silx')
_makedepends=(
'cython'
'python-setuptools')
+checkdepends=(
+ 'xorg-server-xvfb'
+)
_optdepends=()
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('046b7c7830b7e95b2a974133dfb17c442691255689ef250141c9435d3aa07970f9221d4f10425bde3a3eb79110da659c8e518b478855397c6df5ef4a9c877d8d')
@@ -57,11 +63,18 @@ build() {
python setup.py build
}
+check() {
+ cd "${srcdir}/py2-${_pkgname}-${pkgver}"
+ xvfb-run python2 setup.py test
+
+ cd "${srcdir}/py-${_pkgname}-${pkgver}"
+ xvfb-run python setup.py test
+}
+
package_python2-pyfai() {
depends=(
"${_deppy2[@]}"
"${_depends[@]//python/python2}"
- 'python2-ipympl'
)
optdepends=(
"${_optdepends[@]//python/python2}"
@@ -81,7 +94,6 @@ package_python-pyfai() {
depends=(
"${_deppy[@]}"
"${_depends[@]}"
- 'python-ipympl'
)
optdepends=(
"${_optdepends[@]}"