maintainer="Naomi Rennie-Waldock <naomi.renniewaldock@gmail.com>"
pkgname=py3-id
pkgver=1.5.0
pkgrel=0
pkgdesc="Tool for generating OIDC identities"
url="https://pypi.org/project/id/"
arch="noarch"
license="Apache-2.0"
depends="
	py3-urllib3
	python3
	"
makedepends="
	py3-build
	py3-flit-core
	py3-gpep517
	py3-installer
	py3-setuptools_scm
	py3-wheel
	"
checkdepends="
	py3-pretend
	py3-pytest
	py3-requests
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/i/id/id-$pkgver.tar.gz"
builddir="$srcdir/id-$pkgver"

build() {
	python -m build --wheel --no-isolation
}

check() {
	# A test runs on if GITLAB_CI, but fails due to some other missing variable.
	unset GITLAB_CI
	PYTHONPATH="." pytest -vv
}

package() {
	python3 -m installer -d "$pkgdir" dist/id-$pkgver-py3-none-any.whl
}

sha512sums="
968f0026071fcbe7aec77e7dbd840ad90ac5d763d4fca391326874fbd0cf66edf4f34d2a75859722cf2eb591b640c2ad63208139c7f0ca96ea3e52e7bf40c5c6  id-1.5.0.tar.gz
"
