The given SHA-1 hash
84E05C1D98BCE3A5421D225B140B36E86A3D5534
is a long hexadecimal number. In your code you treat it as a string, (e.g. "84") but you need to interpret it as hexadecimal representation of a byte array (e.g. first byte is 0x84):
import base64
x = "84E05C1D98BCE3A5421D225B140B36E86A3D5534"
x5t = base64.b64encode(bytearray.fromhex(x))
print(x5t.decode())
The result is:
hOBcHZi846VCHSJbFAs26Go9VTQ=
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…