had a simple license checker that worked until I upgraded to cryptography 37.0.2, which removed the 'verifier' method altogether (it had been deprecated for a while). I had to downgrade to 36.0.0 to be able to keep it working as is.
....
license.verify(certificate)
File "XXXX.truepy_license.py", line 210 in verify
verifier = self._verifier(certificate)
File "XXXX.truepy_license.py", line 190 in _verifier
return public_key.verifier(
AttributeError: '_RSAPublicKey' object has no attribute 'verifier'