{% set name = "virtualenv" %}
{% set version = "15.2.0" %}
{% set sha256 = "1d7e241b431e7afce47e77f8843a276f652699d1fa4f93b9d8ce0076fd7b0b54" %}

package:
  name: "{{ name }}"
  version: "{{ version }}"

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256 : {{ sha256 }}
  patches:
    - 0001-Mach-O-Copy-any-dynamic-libraries-and-symlinks-to-th.patch
    - 0002-ELF-Copy-any-dynamic-libraries-and-symlinks-to-the-c.patch

build:
  number: 0
  entry_points:
    - virtualenv = virtualenv:main
  script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
  host:
    - python
    - setuptools
  run:
    - python

test:
  commands:
    - virtualenv --help
    - |
      virtualenv -p "$(which python)" /tmp/venv-$$                                # [not win]
      source /tmp/venv-$$/bin/activate                                            # [not win]
      python -c 'import sys ; sys.exit(not hasattr(sys, "real_prefix"))'          # [not win]
  imports:
    - virtualenv

about:
  home: https://virtualenv.pypa.io/
  license: MIT
  license_file: LICENSE.txt
  summary: Virtual Python Environment builder
  description: |
    virtualenv is a tool to create isolated Python environments.
  doc_url: https://virtualenv.pypa.io/en/latest/
  dev_url: https://github.com/pypa/virtualenv

extra:
  recipe-maintainers:
    - mingwandroid
    - kalefranz
