summaryrefslogtreecommitdiff
path: root/python-silx/PKGBUILD
blob: 348c28e2606e7b560b5b27afe6cc0464b8f4ba6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Leonid B <leonid dot bloch at esrf dot fr>
# Upstream contact: silx at esrf dot fr
pkgname=python-silx
_pkgname=silx
pkgver=1.1.1
pkgrel=5
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.2.1'
  'glibc>=2.31'
)
depends=(
  "${_pinned_dependencies[@]}"
  'cython>=0.21.1'
  'python>=3.11'
  'python<3.12'
  'python-dateutil'
  'python-fabio>=0.9'
  'python-h5py'
  'python-mako'
  'python-matplotlib>=1.2.0'
  'python-numpy'
  'python-numpy>=1.12'
  'python-pillow'
  'python-pint'
  'python-pyopencl'
  '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=('4f668f60d2ca28a51eb3ae33e1fc5665f26918309f533a7e8d02f0cde636b46b5d87c657472cd8010b140b3a6cada74053ef8f177917e05d2aaed1813ca6d566')

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"
}