def plugin_request(plugin_str):
from pip_helpers import CRE_PACKAGE<EOL>match = CRE_PACKAGE.match(plugin_str)<EOL>if not match:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>return match.groupdict()<EOL>
Extract plugin name and version specifiers from plugin descriptor string.

.. versionchanged:: 0.25.2
    Import from `pip_helpers` locally to avoid error `sci-bots/mpm#5`_.

    .. _sci-bots/mpm#5: https://github.com/sci-bots/mpm/issues/5