7 , cryptography, defusedxml, pyopenssl, dateutil, pytz, requests, six
8 , mock, pyasn1, pymongo, pytest, responses, xmlschema, importlib-resources
11 buildPythonPackage rec {
17 # No tests in PyPI tarball
18 src = fetchFromGitHub {
19 owner = "IdentityPython";
22 sha256 = "1gh74csjk6af23agyigk4id79s4li1xnkmbpp73aqyvlly2kd0b7";
27 src = ./hardcode-xmlsec1-path.patch;
33 # fix failing tests on systems with 32bit time_t
34 sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
37 propagatedBuildInputs = [
49 checkInputs = [ mock pyasn1 pymongo pytest responses ];
51 # Disabled tests try to access the network
53 py.test -k "not test_load_extern_incommon \
54 and not test_load_remote_encoding \
55 and not test_load_external \
56 and not test_conf_syslog"
60 homepage = "https://github.com/rohe/pysaml2";
61 description = "Python implementation of SAML Version 2 Standard";
62 license = licenses.asl20;