Conda plugin: run conda install

I’m trying to create a snap for the CadQuery Python library that can be installed with Conda as explained in the readme:

conda create -n cadquery
conda activate cadquery
conda install -c conda-forge -c cadquery cadquery=master

It seems that the conda-packages list is used in the conda create command, so I tried this:

parts:
  cadquery:
    plugin: conda
    conda-packages:
    - -n
    - cadquery
    conda-python-version: '3.8'

But I can’t use the -n option, I’m getting this error.

+ CONDA_TARGET_PREFIX_OVERRIDE=/snap/cadquery/current
+ conda create --prefix /root/parts/cadquery/install --yes python=3.8 -n cadquery
usage: conda create [-h] [--clone ENV] [-n ENVIRONMENT | -p PATH] [-c CHANNEL] [--use-local] [--override-channels] [--repodata-fn REPODATA_FNS]
                    [--strict-channel-priority] [--no-channel-priority] [--no-deps | --only-deps] [--no-pin] [--copy] [-C] [-k] [--offline] [-d]
                    [--json] [-q] [-v] [-y] [--download-only] [--show-channel-urls] [--file FILE] [--no-default-packages] [--dev]
                    [package_spec ...]
conda create: error: argument -n/--name: not allowed with argument -p/--prefix

I’m not used to Conda, neither Snapcraft, so I’m stuck here: I don’t know how to add the -n option (in fact I’m not sure if I really need to create a new environment). Then, I don’t know how to run the install command (conda install -c conda-forge -c cadquery cadquery=master).

Any help?

Try

parts:
  cadquery:
    plugin: conda
    conda-packages:
    - cadquery
    conda-python-version: '3.8'

or

parts:
  cadquery:
    plugin: conda
    conda-packages:
    - cadquery=master
    conda-python-version: '3.8'