pythonPackages.pysaml2: fix tests on 32bit systems

(cherry picked from commit 60575b2fb7)
This commit is contained in:
rnhmjoj
2020-02-23 14:44:46 +01:00
parent 9dc6361b4d
commit b4db2d9239

View File

@@ -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 ];