import base64
import hmac
import hashlib
from datetime import datetime, UTC, timedelta # <--- datetime.UTC is not available for python < 3.11
hubspot/utils/signature.py
datetime.UTC (alias for datetime.timezone.utc) is available since python 3.11, see What’s New In Python 3.11. For older versions, this will raise an ImportError.
hubspot/utils/signature.py
datetime.UTC
(alias fordatetime.timezone.utc
) is available since python 3.11, see What’s New In Python 3.11. For older versions, this will raise anImportError
.Possible solution: Use
timezone.utc
.