1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-saml2/APKBUILD
2023-02-25 19:51:24 +00:00

54 lines
1.1 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-saml2
pkgver=7.4.1
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"
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="
0af160026cb07c97232af4d54b160b21980060f6f76d5ea36a002af15e18168230dd977996e5be300af36628a16bcfe80048f7109676345745fdafa27a54d686 py3-saml2-7.4.1.tar.gz
"