How do you inject dependencies in your classes from external packages?
You should be able to use the fully qualified namespace for the injection:

services:
  mymodule.example_service:
    class: path\to\Class