From 60575b2fb70b8220b295b3dabacd8732e4a42084 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 23 Feb 2020 14:44:46 +0100 Subject: [PATCH] pythonPackages.pysaml2: fix tests on 32bit systems --- pkgs/development/python-modules/pysaml2/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pysaml2/default.nix b/pkgs/development/python-modules/pysaml2/default.nix index b4552b264d5a..593911c064ec 100644 --- a/pkgs/development/python-modules/pysaml2/default.nix +++ b/pkgs/development/python-modules/pysaml2/default.nix @@ -36,6 +36,11 @@ buildPythonPackage rec { }) ]; + postPatch = '' + # fix failing tests on systems with 32bit time_t + sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml + ''; + propagatedBuildInputs = [ cryptography defusedxml future pyopenssl dateutil pytz requests six ]; checkInputs = [ mock pyasn1 pymongo pytest responses ];