code: def get_plugin_spec(self, name):
          
          l_name = name.lower()
          for spec in self.plugins:
              name = spec.get('name', spec.get('klass', spec.module))
              if name.lower() == l_name:
                  return spec
          raise KeyError(name)
docs: Get the specification attributes for plugin with name `name`.