python312Packages.pysnow: patch tests, unbreak

This commit is contained in:
Peder Bergebakken Sundt
2024-11-08 21:16:56 +01:00
parent 0465be1b8f
commit 226843be6a
@@ -58,6 +58,10 @@ buildPythonPackage rec {
--replace 'ijson = "^2.5.1"' 'ijson = "*"' \
--replace 'pytz = "^2019.3"' 'pytz = "*"' \
--replace 'oauthlib = "^3.1.0"' 'oauthlib = "*"'
# https://github.com/rbw/pysnow/pull/201 doesn't apply via fetchpatch, so we recreate it
substituteInPlace tests/test_client.py tests/test_oauth_client.py tests/test_params_builder.py tests/test_resource.py \
--replace-fail "self.assertEquals" "self.assertEqual"
'';
pythonImportsCheck = [ "pysnow" ];