Merge pull request #147014 from fabaff/bump-pysaml2

python3Packages.pysaml2: 7.0.1 -> 7.1.0
This commit is contained in:
Fabian Affolter 2021-11-22 22:18:23 +01:00 committed by GitHub
commit bed75332f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,60 @@
{ lib
, buildPythonPackage
, isPy3k
, cryptography
, defusedxml
, fetchFromGitHub
, importlib-resources
, mock
, pyasn1
, pymongo
, pyopenssl
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
, requests
, responses
, six
, substituteAll
, xmlschema
, xmlsec
, cryptography, defusedxml, pyopenssl, python-dateutil, pytz, requests, six
, mock, pyasn1, pymongo, pytest, responses, xmlschema, importlib-resources
}:
buildPythonPackage rec {
pname = "pysaml2";
version = "7.0.1";
version = "7.1.0";
format = "setuptools";
disabled = !isPy3k;
disabled = pythonOlder "3.6";
# No tests in PyPI tarball
src = fetchFromGitHub {
owner = "IdentityPython";
repo = pname;
rev = "v${version}";
sha256 = "0ickqask6bjipgi3pvxg92pjr6dk2rr3q9garap39mdrp2gsfhln";
sha256 = "sha256-3Yl6j6KAlw7QQYnwU7+naY6D97IqX766zguekKAuic8=";
};
propagatedBuildInputs = [
cryptography
python-dateutil
defusedxml
pyopenssl
pytz
requests
six
xmlschema
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
checkInputs = [
mock
pyasn1
pymongo
pytestCheckHook
responses
];
patches = [
(substituteAll {
src = ./hardcode-xmlsec1-path.patch;
@ -34,32 +67,22 @@ buildPythonPackage rec {
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
'';
propagatedBuildInputs = [
cryptography
python-dateutil
defusedxml
importlib-resources
pyopenssl
pytz
requests
six
xmlschema
disabledTests = [
# Disabled tests try to access the network
"test_load_extern_incommon"
"test_load_remote_encoding"
"test_load_external"
"test_conf_syslog"
];
checkInputs = [ mock pyasn1 pymongo pytest responses ];
# Disabled tests try to access the network
checkPhase = ''
py.test -k "not test_load_extern_incommon \
and not test_load_remote_encoding \
and not test_load_external \
and not test_conf_syslog"
'';
pythonImportsCheck = [
"saml2"
];
meta = with lib; {
homepage = "https://github.com/rohe/pysaml2";
description = "Python implementation of SAML Version 2 Standard";
homepage = "https://github.com/IdentityPython/pysaml2";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}