{% set version = "3.1.2" %}
{% set buildnumber = 11 %}

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

source:
  - git_url: https://github.com/matplotlib/matplotlib
    git_tag: v{{version}}
    patches:
      - cfg_notests.patch
      - osx-frame.patch                # [osx]
      - win_library_path.patch         # [win]
  - url: https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip
    folder: jquery-ui-1.12.1/
    sha256: f8233674366ab36b2c34c577ec77a3d70cac75d2e387d8587f3836345c0f624d

build:
  number: {{buildnumber}}

requirements:
  build:
    - {{ compiler('c') }}            # [not osx]
    - {{ compiler('cxx') }}          # [linux]
  host:
    - bzip2 1.0.*                    # [win]
    - cycler
    - freetype 2.10.*
    - libpng 1.6.*
    - nose
    - numpy 1.17                     # [linux and py==37]
    - numpy                          # [win or osx or py>=38]
    - pkg-config                     # [osx]
    - pyparsing
    - python
    - python-dateutil
    - pytz
    - setuptools
    - tk
    - tornado
    - zlib 1.2.*                     # [win]
  run:
    - {{ pin_compatible('numpy') }}
    - backports.functools_lru_cache  # [py2k]
    - bzip2 1.0.*                    # [win and py2k]
    - cycler
    - freetype 2.10.*
    - functools32                    # [py2k]
    - intelpython >=2019.0
    - kiwisolver
    - libpng 1.6.*
    - pyparsing
    - python
    - python-dateutil
    - pytz
    - tcl
    - tk                             # [win]
#    - tornado
    - zlib 1.2.*                     # [win]

test:
  requires:
    - mock
    - nose
    # Add tornado as it was required for matplotlib to work
    - tornado
  imports:
    - matplotlib

about:
  home: http://matplotlib.org/
  license: PSF-based
  license_family: PSF
  license_file: LICENSE/LICENSE
  summary: Python 2D plotting library
  description: |
    <strong>LEGAL NOTICE: Use of this software package is subject to the
    software license agreement (as set forth above, in the license section of
    the installed Conda package and/or the README file) and all notices,
    disclaimers or license terms for third party or open source software
    included in or with the software.</strong> 
    <br/><br/>
    EULA: <a href="http://matplotlib.sourceforge.net/users/license.html" target="_blank">PSF-based</a>
    <br/><br/>
    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
