pythonPackages.pysaml2: 5.0.0 -> 6.5.1
addressing CVE-2021-21238 & CVE-2021-21239
This commit is contained in:
parent
44ad80ab10
commit
03058d38bb
@ -2,16 +2,15 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, xmlsec
|
, xmlsec
|
||||||
, cryptography, defusedxml, future, pyopenssl, dateutil, pytz, requests, six
|
, cryptography, defusedxml, pyopenssl, dateutil, pytz, requests, six
|
||||||
, mock, pyasn1, pymongo, pytest, responses
|
, mock, pyasn1, pymongo, pytest, responses, xmlschema, importlib-resources
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pysaml2";
|
pname = "pysaml2";
|
||||||
version = "5.0.0";
|
version = "6.5.1";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
owner = "IdentityPython";
|
owner = "IdentityPython";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0hwhxz45h8l1b0615hf855z7valfcmm0nb7k31bcj84v68zp5rjs";
|
sha256 = "1gh74csjk6af23agyigk4id79s4li1xnkmbpp73aqyvlly2kd0b7";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -28,12 +27,6 @@ buildPythonPackage rec {
|
|||||||
src = ./hardcode-xmlsec1-path.patch;
|
src = ./hardcode-xmlsec1-path.patch;
|
||||||
inherit xmlsec;
|
inherit xmlsec;
|
||||||
})
|
})
|
||||||
# remove on next release
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-test-dates.patch";
|
|
||||||
url = "https://github.com/IdentityPython/pysaml2/commit/1d97d2d26f63e42611558fdd0e439bb8a7496a27.patch";
|
|
||||||
sha256 = "0r6d6hkk6z9yw7aqnsnylii516ysmdsc8dghwmgnwvw6cm7l388p";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -41,7 +34,17 @@ buildPythonPackage rec {
|
|||||||
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
|
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography defusedxml future pyopenssl dateutil pytz requests six ];
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
|
dateutil
|
||||||
|
defusedxml
|
||||||
|
importlib-resources
|
||||||
|
pyopenssl
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
six
|
||||||
|
xmlschema
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ mock pyasn1 pymongo pytest responses ];
|
checkInputs = [ mock pyasn1 pymongo pytest responses ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user