# Contributor: Leo # Maintainer: pkgname=py3-saml2 pkgver=7.4.2 pkgrel=0 pkgdesc="Pure python implementation of SAML2" url="https://github.com/IdentityPython/pysaml2" arch="noarch" license="Apache-2.0" depends=" python3 py3-cryptography py3-defusedxml py3-openssl py3-dateutil py3-tz py3-requests py3-xmlschema xmlsec " makedepends=" py3-gpep517 py3-poetry-core " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/IdentityPython/pysaml2/archive/v$pkgver.tar.gz" builddir="$srcdir/pysaml2-$pkgver" options="!check" # py3-mongo in testing # secfixes: # 6.5.0-r0: # - CVE-2021-21238 # - CVE-2021-21239 build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 4a125cf08e7eb4856aea87eb7cad0539b1e520d44cf7a6a6fcb52185ab2acf05efe773165614f9b633c85f46ca4b189ee6038aaa51fe8343d75ab3bf0e06d43e py3-saml2-7.4.2.tar.gz "