# Maintainer: Erich Eckner # Contributor: Leonid B # Upstream contact: silx at esrf dot fr pkgname=python-silx _pkgname=silx pkgver=1.0.0 pkgrel=4 pkgdesc="A collection of Python packages for data analysis at synchrotron radiation facilities." arch=('i686' 'pentium4' 'x86_64') url="http://www.silx.org" license=('MIT' 'LGPL') _pinned_dependencies=( 'gcc-libs=12.1.1' 'glibc>=2.31' ) depends=( "${_pinned_dependencies[@]}" 'cython>=0.21.1' 'python>=3.10' 'python<3.11' 'python-dateutil' 'python-fabio>=0.9' 'python-h5py' 'python-mako' 'python-matplotlib>=1.2.0' 'python-numpy' 'python-numpy>=1.12' 'python-pillow' 'python-pyopencl' # 'python-pyopengl' 'python-pyqt5' 'python-qtconsole' 'python-scipy' 'python-setuptools') checkdepends=( 'python-pytest' 'python-pytest-xvfb') makedepends=( 'python-setuptools') optdepends=('python-h5py: for HDF5 input/output' 'ipython: for interactive console' 'python-qtconsole: for GUI console' 'python-pyopencl: for sift - OpenCL implementation' 'opencl-driver: for sift - OpenCL implementation') source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/silx-kit/${_pkgname}/archive/v${pkgver}.tar.gz") sha512sums=('608eb0c1b3dd22514038cbdc82841e8b25fab75c4401582d47fea7c6fe87c6970ff1b98381479c75f8567a7b1150b6cecc0b5a0745b23265ad0e7215fa5449d7') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package_python-silx() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }