# Maintainer: 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.19.5') optdepends=('python-matplotlib>=3.3.3: required only for plotting' 'python-imagecodecs>=2021.2.26: required only for encoding or decoding LZW, JPEG, etc' 'python-lxml>=4.6.2: required only for validating and printing XML' 'python-zarr>=2.6.1: required only for opening zarr storage') #checkdepends=('python-pytest') source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") sha256sums=('1b72c92ecd2273e52686c0f8792d1d1c4da4109b241dd1723dfe56ef4d1ad612') 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 } # vim:ts=2:sw=2:et: