# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-piexif
_pyname=piexif
pkgver=1.1.3
pkgrel=7
pkgdesc="EXIF manipulations with Python"
url="https://github.com/hMatoba/Piexif"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pillow"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.zip
	fix-running-tests.patch
	"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
df5f7793c39911af58bbae76cf998e2a7bc820b84dcf9808ee8f6a38f766f824fef28392ef88387e18b10c270c4b27881be310f0368076b6fb65379a11a93270  piexif-1.1.3.zip
5b4ca4ffc6b15246870d5f0cde41a7393702a827d81e88efcf561eb45ae58c75dd0d2917285b6e2fc1dbeedce2ed19d0bf042f20d6412e6f9022a0d0ce27fe4e  fix-running-tests.patch
"
