Description: fix #820725 oauthclient2 api incompat
Author: Alexander Zangerl <az@debian.org>
--- a/duplicity/backends/pydrivebackend.py
+++ b/duplicity/backends/pydrivebackend.py
@@ -33,7 +33,8 @@ class PyDriveBackend(duplicity.backend.B
             global pydrive
             import httplib2
             from apiclient.discovery import build
-            from oauth2client.client import SignedJwtAssertionCredentials
+            from oauth2client.service_account import ServiceAccountCredentials
+            from oauth2client import crypt
             from pydrive.auth import GoogleAuth
             from pydrive.drive import GoogleDrive
             from pydrive.files import FileNotUploadedError
@@ -43,7 +44,8 @@ class PyDriveBackend(duplicity.backend.B
 
         if 'GOOGLE_DRIVE_ACCOUNT_KEY' in os.environ:
             account_key = os.environ['GOOGLE_DRIVE_ACCOUNT_KEY']
-            credentials = SignedJwtAssertionCredentials(parsed_url.username + '@' + parsed_url.hostname, account_key, scope='https://www.googleapis.com/auth/drive')
+            signer = crypt.Signer.from_string(account_key)
+            credentials = ServiceAccountCredentials(parsed_url.username + '@' + parsed_url.hostname, signer, scopes='https://www.googleapis.com/auth/drive')
             credentials.authorize(httplib2.Http())
             gauth = GoogleAuth()
             gauth.credentials = credentials
