# Maintainer: Erich Eckner # Contributor: Astro Benzene # Contributor: Francois Boulogne pkgname=python-tifffile pkgver=2021.3.17 _pyname=${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') makedepends=('python-setuptools') depends=('python-numpy>=1.15.1') 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/$_pyname/archive/v$pkgver.tar.gz") sha512sums=('c8cb1a2397ef6b4b9ff965494eed7e9f40cd1e214832352508cd6950b5898d615b703c361b9ba54b2ba7fc9cc3e733fdcda5fd71133f7f01b44a59bcfb17da57') build() { cd ${srcdir}/${_pyname}-${pkgver} python setup.py build } #check() { # cd ${srcdir}/${_pyname}-${pkgver} # # PYTHONPATH="build/lib" pytest #} package() { cd ${srcdir}/${_pyname}-${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 }