Commit 226843be authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python312Packages.pysnow: patch tests, unbreak

parent 0465be1b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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" ];