# Maintainer: Erich Eckner # Contributor: Astro Benzene # Contributor: Francois Boulogne pkgname=python-tifffile pkgver=2022.8.12 _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.11' 'python>=3.10') 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=('35d7e7387bb2c7bcf88e8dac12e13c836a009f9344c9ae0cb0ca80184a42e6018744f09bdaa0d12c436b0561dcd96b97b2e6ca8106c512912b1eae813c5c3902') 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 }