
    .PhK                     J    d dl mZ d dlmZ d dlmZ d dlmZ dededefdZ	d	S )
    )Optional)Channel)	MatchSpec)VersionedDependencyspeccategoryreturnc           
      8   	 t          |           }n&# t          $ r}t          d|  d          |d}~ww xY w|                    d          }|r|j        }nd}t          |j        |                    d          pdd|g |                    d          |	          S )
zConvert a string form conda spec into a versioned dependency for a given category.

    This is used by the environment.yaml and meta.yaml specification parser
    zFailed to turn `z` into a MatchSpecNchannelversion condabuild)namer   managerr   extrasr   conda_channel)r   	ExceptionRuntimeErrorgetcanonical_namer   r   )r   r   msepackage_channelchannel_strs         b/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/conda_lock/src_parser/conda_common.pyconda_spec_to_versioned_depr      s    Ot__ O O OFdFFFGGQNO *,	):):O %4Wy!!'RffWoo!   s    
505N)
typingr   'conda_lock._vendor.conda.models.channelr   *conda_lock._vendor.conda.models.match_specr   conda_lock.models.lock_specr   strr        r   <module>r%      s          ; ; ; ; ; ; @ @ @ @ @ @ ; ; ; ; ; ;c S =P      r$   