# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Steven Guikal <void@fluix.one>
pkgname=py3-itsdangerous
_pkgname=itsdangerous
pkgver=2.2.0
pkgrel=0
pkgdesc="Python3 helper to pass trusted data to untrusted environments"
url="https://github.com/pallets/itsdangerous"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-flit-core py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests

replaces="py-itsdangerous" # Backwards compatibility
provides="py-itsdangerous=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
ed046cc371ea9aa1f7cd3bd201f1b68910a2b008bd8434c425332cecec6539cf031df6e2223a1fdccd68c12ccf5486e80f178d5906911b19417f0ea244e367f8  itsdangerous-2.2.0.tar.gz
"
