# Maintainer: Erich Eckner # Contributor: Astro Benzene # Contributor: Francois Boulogne pkgname=python-tifffile pkgver=2024.2.12 _pkgname=${pkgname#python-} pkgrel=4 pkgdesc="Read and write image data from and to TIFF files" arch=('any') url="https://github.com/cgohlke/tifffile" license=('BSD') depends=( 'python<3.13' 'python>=3.12') makedepends=( 'python-setuptools') optdepends=('python-matplotlib>=3.1: required only for plotting' 'python-imagecodecs>=2020.2.18: required only for encoding or decoding LZW, JPEG, etc' 'python-lxml: required only for validating and printing XML') #checkdepends=('python-pytest') source=("$_pkgname-$pkgver.tar.gz::https://github.com/cgohlke/$_pkgname/archive/v$pkgver.tar.gz") sha512sums=('0cb1f33b879047b311d4ba7b8a00164230935bbd1403f33d3a1a44bedf1797e5f4b066fae865ae990da5356c0a868e4a5722f1da36ff77d8cd9b550d58286552') build() { cd ${srcdir}/${_pkgname}-${pkgver} python setup.py build } #check() { # cd ${srcdir}/${_pkgname}-${pkgver} # # PYTHONPATH="build/lib" pytest #} package() { cd ${srcdir}/${_pkgname}-${pkgver} install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" python setup.py install --root="${pkgdir}" --optimize=1 }