We value Open Source and make a point to release all our plugins on GitHub under a BSD License.
Copy wakatime.py into $(IDA_PATH)/plugins/.
Restart IDA Pro.
Enter your API Key, then click Save.
Use IDA Pro like you normally do and your activity will be displayed on your WakaTime Dashboard.