From a1907ebc40c75c9fa020239a9c7cb0e75f203ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 23 Jan 2021 10:18:11 +0700 Subject: [PATCH] python3-saml2: update to 6.5.1. CVE-2021-21238 CVE-2021-21239 --- srcpkgs/python3-saml2/template | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-saml2/template b/srcpkgs/python3-saml2/template index 630660ce5ab..07b7e142efa 100644 --- a/srcpkgs/python3-saml2/template +++ b/srcpkgs/python3-saml2/template @@ -1,19 +1,29 @@ # Template file for 'python3-saml2' pkgname=python3-saml2 -version=6.4.1 +version=6.5.1 revision=1 wrksrc="pysaml2-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-cryptography python3-openssl python3-dateutil - python3-pytz python3-requests python3-six python3-defusedxml" + python3-pytz python3-requests python3-six python3-defusedxml + python3-xmlschema" checkdepends="python3-pytest python3-mock xmlsec1-devel $depends" short_desc="Python3 implementation of SAML Version 2 Standard" maintainer="Orphaned " license="Apache-2.0" homepage="https://github.com/IdentityPython/pysaml2" distfiles="https://github.com/IdentityPython/pysaml2/archive/v${version}.tar.gz" -checksum=341fe81e1fdff72e6082ba81645a9b75dab7482cf9b878f566d023311169f8c0 +checksum=3940f4b7da41f42d4155a21d50d28145b5bfec4724300553f09e4fe647f76cf9 + +post_patch() { + # importlib_resources just delegate to importlib.resources + # in Python 3.9 + vsed -i -e 's/importlib_resources/importlib.resources/' \ + src/saml2/xml/schema/__init__.py \ + src/saml2/sigver.py + vsed -i -e '/importlib_resources/d' setup.cfg +} do_check() { # Ignore tests that depend on packages not provided by Void