Use `pkg` plugin attribute

This PR makes the plugin use the `pkg` property on the plugin attributes rather than separately specifying `name` and `version`.