I have a Snakefile with a rule to create and activate a conda environment from a yaml file with samtools version 1.9, then to check the version:
rule environ: