{% set version = "2.2.3" %}
{% set buildnumber = 0 %}

package:
    name: matplotlib
    version: {{version}}

source:
  git_url: https://github.com/matplotlib/matplotlib
  git_tag: v{{version}}
  patches:
    - cfg_notests.patch
    - intel_cfg_webagg.patch    [not osx]
    - osx-frame.patch           [osx]
    - win_library_path.patch    [win]

build:
  number: {{buildnumber}}

requirements:
  host:
    - python
    - setuptools
    - pkg-config          [osx]
    - numpy-devel
    - python-dateutil
    - freetype 2.9.*
    - pyparsing
    - pytz
    - tornado
    - libpng 1.6.*
    - zlib 1.2.*          [win]
    - bzip2 1.0.*         [win]
    - tk
    - cycler
    - nose
  run:
    - backports.functools_lru_cache  [py2k]
    - python
    - python-dateutil
    - freetype 2.9.*
    - pytz
    - pyparsing
    - zlib 1.2.*          [win]
    - bzip2 1.0.*         [win and py2k]
    - tk                  [win]
    - tcl
    - libpng 1.6.*
    - cycler
    - functools32         [py2k]
    - intelpython >=2019.0
    - kiwisolver

test:
  requires:
    - nose
    - mock
  imports:
    - matplotlib

about:
  home: http://matplotlib.org/
  license: PSF-based (http://matplotlib.sourceforge.net/users/license.html)
  license_family: PSF
  license_file: LICENSE/LICENSE
  summary: Python 2D plotting library
  description: |
    matplotlib is a python 2D plotting library which produces publication
    quality figures in a variety of hardcopy formats and interactive
    environments across platforms. matplotlib can be used in Python scripts,
    the Python and IPython shell (ala MATLAB or Mathematica), web
    application servers, and six graphical user interface toolkits.
  doc_url: http://matplotlib.org/contents.html#
  dev_url: https://github.com/matplotlib/matplotlib
