1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/py3-imageio/APKBUILD
Kevin Daudt 98aeb63149 testing/py3-imageio: disable in ppc64le
2 tests are failing, waiting for upstream

See: #12709
2021-05-29 12:40:23 +00:00

34 lines
1 KiB
Text

# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=py3-imageio
pkgver=2.9.0
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"
# mips, mips64: missing py3-numpy
# ppc64le: test failures
arch="noarch !mips !mips64 !ppc64le"
depends="python3 py3-numpy py3-pillow freeimage"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-psutil py3-imageio-ffmpeg"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/imageio/imageio-$pkgver.tar.gz"
builddir="$srcdir/imageio-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD"/build/lib IMAGEIO_NO_INTERNET=1 pytest -v
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
# remove unneeded binaries
rm -r "$pkgdir"/usr/bin
}
sha512sums="
07fce90f25393c5bdede52b04fc8175764226bdb47546fd304f947ff8cc006477c6edb9b96f3dcb11e9e137b72a89f5d25c3652e71853c92100aa91140312179 py3-imageio-2.9.0.tar.gz
"