python3Packages.python3-saml: Add patch to fix tests due to expired responses

This commit is contained in:
Zhaofeng Li 2021-07-05 15:19:02 -07:00
parent 976791a768
commit 06c4f46a1a

View file

@ -1,4 +1,4 @@
{ lib, fetchurl, fetchFromGitHub, buildPythonPackage, isPy3k, { lib, fetchpatch, fetchFromGitHub, buildPythonPackage, isPy3k,
isodate, lxml, xmlsec, freezegun }: isodate, lxml, xmlsec, freezegun }:
buildPythonPackage rec { buildPythonPackage rec {
@ -13,14 +13,21 @@ buildPythonPackage rec {
sha256 = "1yk02xq90bm7p6k091av6gapb5h2ccxzgrbm03sj2x8h0wff9s8k"; sha256 = "1yk02xq90bm7p6k091av6gapb5h2ccxzgrbm03sj2x8h0wff9s8k";
}; };
# Remove both patches on update
patches = [ patches = [
# Remove the dependency on defusedxml # Remove the dependency on defusedxml
# #
# This patch is already merged upstream and does not introduce any # This patch is already merged upstream and does not introduce any
# functionality changes. # functionality changes.
(fetchurl { (fetchpatch {
url = "https://github.com/onelogin/python3-saml/commit/4b6c4b1f2ed3f6eab70ff4391e595b808ace168c.patch"; url = "https://github.com/onelogin/python3-saml/commit/4b6c4b1f2ed3f6eab70ff4391e595b808ace168c.patch";
sha256 = "11gqn7ib2hmlx5wp4xhi375v5ajapwmj4lpw0y44bh5ww8cypvqy"; sha256 = "sha256-KHyAoX3our3Rz2z4xo0lTBB1XOGuC3Pe+lUDCzK5WQI=";
})
# Update expiry dates for test response XMLs
(fetchpatch {
url = "https://github.com/onelogin/python3-saml/commit/05611bbf6d7d8313adb9c77ff88a9210333ccc38.patch";
sha256 = "sha256-62TwgCXDFYsZIAeqAysJRziMvhUVhGzta/C2wS3v4HY=";
}) })
]; ];