Merge pull request #250629 from fabaff/pysaml2-bump

python311Packages.pysaml2: 7.4.1 -> 7.4.2

authored by OTABI Tomoya and committed by GitHub e3ffebdf a1a55a20

+18 -27
+18 -27
pkgs/development/python-modules/pysaml2/default.nix
··· 3 3 , cryptography 4 4 , defusedxml 5 5 , fetchFromGitHub 6 - , fetchPypi 7 6 , importlib-resources 8 7 , poetry-core 9 8 , pyasn1 ··· 21 20 , xmlsec 22 21 }: 23 22 24 - let 25 - pymongo3 = pymongo.overridePythonAttrs(old: rec { 26 - version = "3.12.3"; 27 - src = fetchPypi { 28 - pname = "pymongo"; 29 - inherit version; 30 - hash = "sha256-ConK3ABipeU2ZN3gQ/bAlxcrjBxfAJRJAJUoL/mZWl8="; 31 - }; 32 - }); 33 - in buildPythonPackage rec { 23 + buildPythonPackage rec { 34 24 pname = "pysaml2"; 35 - version = "7.4.1"; 25 + version = "7.4.2"; 36 26 format = "pyproject"; 37 27 38 28 disabled = pythonOlder "3.9"; ··· 40 30 src = fetchFromGitHub { 41 31 owner = "IdentityPython"; 42 32 repo = pname; 43 - rev = "v${version}"; 44 - hash = "sha256-QHAbm6u5oH3O7MEVFE+sW98raquv89KJ8gonk3Yyu/0="; 33 + rev = "refs/tags/v${version}"; 34 + hash = "sha256-f8qd1Mfy32CYH9/PshfMMBviDg7OhOPlwz69bPjlYbg="; 45 35 }; 46 36 37 + patches = [ 38 + (substituteAll { 39 + src = ./hardcode-xmlsec1-path.patch; 40 + inherit xmlsec; 41 + }) 42 + ]; 43 + 44 + postPatch = '' 45 + # Fix failing tests on systems with 32bit time_t 46 + sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml 47 + ''; 48 + 47 49 nativeBuildInputs = [ 48 50 poetry-core 49 51 ]; ··· 63 65 64 66 nativeCheckInputs = [ 65 67 pyasn1 66 - pymongo3 68 + pymongo 67 69 pytestCheckHook 68 70 responses 69 71 ]; 70 72 71 - patches = [ 72 - (substituteAll { 73 - src = ./hardcode-xmlsec1-path.patch; 74 - inherit xmlsec; 75 - }) 76 - ]; 77 - 78 - postPatch = '' 79 - # fix failing tests on systems with 32bit time_t 80 - sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml 81 - ''; 82 - 83 73 disabledTests = [ 84 74 # Disabled tests try to access the network 85 75 "test_load_extern_incommon" ··· 95 85 meta = with lib; { 96 86 description = "Python implementation of SAML Version 2 Standard"; 97 87 homepage = "https://github.com/IdentityPython/pysaml2"; 88 + changelog = "https://github.com/IdentityPython/pysaml2/blob/v${version}/CHANGELOG.md"; 98 89 license = licenses.asl20; 99 90 maintainers = with maintainers; [ ]; 100 91 };