# Maintainer: Antoni Aloy pkgname=py3-imageio pkgver=2.31.1 pkgrel=0 pkgdesc="Python library that provides an easy interface to read and write a wide range of image data" url="https://github.com/imageio/imageio" license="BSD-2-Clause" # ppc64le: test failures # s390x: freeimage arch="noarch !ppc64le !s390x" depends="py3-numpy py3-pillow freeimage" makedepends="py3-setuptools" checkdepends="py3-pytest py3-psutil py3-imageio-ffmpeg py3-fsspec" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/imageio/imageio-$pkgver.tar.gz" builddir="$srcdir/imageio-$pkgver" options="!check" # intentionally fail without internet(?), todo build() { python3 setup.py build } check() { PYTHONPATH="$PWD"/build/lib IMAGEIO_NO_INTERNET=1 pytest -v } package() { python3 setup.py install --root="$pkgdir" # remove unneeded binaries # shellcheck disable=2115 rm -r "$pkgdir"/usr/bin } sha512sums=" d21a861ad66ea3cedfab6be424d4140c905eba625e0589979d68071158a2aea3fc7b5ea29ea48395948aa062a0c7c1eb06dc58be537bb096c7e01fe3e277359b py3-imageio-2.31.1.tar.gz "