# Maintainer: Erich Eckner # Contributor: Astro Benzene # Contributor: Francois Boulogne pkgname=python-tifffile pkgver=2023.12.9 _pkgname=${pkgname#python-} pkgrel=1 pkgdesc="Read and write image data from and to TIFF files" arch=('any') url="https://github.com/cgohlke/tifffile" license=('BSD') depends=( 'python<3.12' 'python>=3.11') 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=('de51d75cff08f617d638dbd062940ddcd2b0a0ffb25d4670e8d68bd8bcf19ff299695d7b0c8248d5405bfb0015c539b3dacb5133816eace7d0e93cff4f0d2c00') 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 }