From 31430665d0e68602588dc317b161a475ef3bb17c Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 25 Jul 2022 18:12:37 +0300 Subject: [PATCH] python3Packages.pysaml2: run tests with older pymongo to fix build --- .../development/python-modules/pysaml2/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysaml2/default.nix b/pkgs/development/python-modules/pysaml2/default.nix index ac46cdf0ec47..fcac04101e4c 100644 --- a/pkgs/development/python-modules/pysaml2/default.nix +++ b/pkgs/development/python-modules/pysaml2/default.nix @@ -3,6 +3,7 @@ , cryptography , defusedxml , fetchFromGitHub +, fetchPypi , importlib-resources , mock , pyasn1 @@ -21,7 +22,16 @@ , xmlsec }: -buildPythonPackage rec { +let + pymongo3 = pymongo.overridePythonAttrs(old: rec { + version = "3.12.3"; + src = fetchPypi { + pname = "pymongo"; + inherit version; + sha256 = "sha256-ConK3ABipeU2ZN3gQ/bAlxcrjBxfAJRJAJUoL/mZWl8="; + }; + }); +in buildPythonPackage rec { pname = "pysaml2"; version = "7.1.2"; format = "setuptools"; @@ -52,7 +62,7 @@ buildPythonPackage rec { checkInputs = [ mock pyasn1 - pymongo + pymongo3 pytestCheckHook responses ];