blob: 679c7ae7fbf279763556022474c71309776cc947 (
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
|
# Package maintainer: Leonid B <leonid dot bloch at esrf dot fr>
# Upstream contact: silx at esrf dot fr
pkgname=python-fabio
pkgver=2024.4
pkgrel=1
pkgdesc="I/O library for images produced by 2D X-ray detectors."
arch=('any')
url="http://www.silx.org"
license=('MIT' 'LGPL' 'Apache')
depends=('python-numpy' 'python-pillow' 'python-lxml' 'python-h5py')
optdepends=('python-pyqt5: for the fabio_viewer program')
makedepends=('cython' 'python-tomli' 'meson-python' 'python-build'
'python-installer' 'python-wheel')
source=("https://github.com/silx-kit/${pkgname#*-}/archive/v${pkgver}.tar.gz")
sha256sums=('a7563744ed895ff66ec487b02aa2611e115ff1cc1208e61c30ce8ca70467d787')
build() {
cd "${pkgname#*-}-${pkgver}"
# Remove ninja dependency, as it is brought with meson, and python-ninja
# is not in the official repos
sed -i "/^requires =/,/^\]/{/^[[:space:]]*'ninja',[[:space:]]*$/d}" pyproject.toml
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname#*-}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D copyright "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|