How to add pip dependencies to a non-python project


I am building a qt5 app. This app uses and external tool to format js. So, I want this tool packaged in my snap, but the formatter is a pip package. Which is the best way to add a pip dependency to a non-python project? I’d like to use another part (pip-dependencies) but it needs no source. It is possible?


It seems I found the answer. Simply add this

    plugin: python
    python-version: python3
      - jsbeautifier

I thought that any part needed a sources, but it seems to be optional