# Maintainer: Erich Eckner # Contributor: Astro Benzene # Contributor: Francois Boulogne pkgname=python-tifffile pkgver=2021.4.8 _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.10' 'python>=3.9') 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=('3fbd69435e887843143197fad0769d57a50b2e3e569e0b0ef38982e6cf17f77dad34e1e0b1a3e16111c7f64e40488432c35e6d404575b190d94159292f7802c8') 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 }