{% set version = "2.0.16" %}

package:
  name: astropy
  version: {{version}}

source:
  fn: astropy-{{version}}.tar.gz
  url: https://pypi.io/packages/source/a/astropy/astropy-{{version}}.tar.gz
  sha256: 9c067764f4119dd7bce3228b0b508d48ddad5d726c580b70215ee78baa2eb512

build:
  detect_binary_files_with_prefix: False
  entry_points:
    - fits2bitmap = astropy.visualization.scripts.fits2bitmap:main
    - fitscheck = astropy.io.fits.scripts.fitscheck:main
    - fitsdiff = astropy.io.fits.scripts.fitsdiff:main
    - fitsheader = astropy.io.fits.scripts.fitsheader:main
    - fitsinfo = astropy.io.fits.scripts.fitsinfo:main
    - samp_hub = astropy.samp.hub_script:hub_script
    - volint = astropy.io.votable.volint:main
    - wcslint = astropy.wcs.wcslint:main
  number: 0

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - python
    - setuptools
    - numpy 1.9.*  # [py27]
    - numpy 1.9.*  # [py35]
    - numpy 1.11.*  # [py36]
    - numpy 1.14.*  # [py>=37]
  run:
    - python
    - numpy >=1.9  # [py27]
    - numpy >=1.9  # [py35]
    - numpy >=1.11  # [py36]
    - numpy >=1.14  # [py>=37]

    # Astropy 2.x is not compatible with pytest 3.8 and later
    # https://github.com/astropy/astropy/issues/8177
    - pytest <3.7

test:
  commands:
    - fits2bitmap --help
    - fitscheck --help
    - fitsdiff --help
    - fitsheader --help
    - fitsinfo --help
    - samp_hub --help
    - volint --help
    - wcslint --help
  imports:
    - astropy

about:
  home: http://www.astropy.org/
  license: BSD 3-clause
  license_file: LICENSE.rst
  summary: Community-developed Python Library for Astronomy
  description: |
    The Astropy Project is a community effort to develop a single package for
    Astronomy in Python. It contains core functionality and common tools
    needed for performing astronomy and astrophysics research with Python.
  doc_url: http://docs.astropy.org/en/stable/
  dev_url: https://github.com/astropy/astropy

extra:
  recipe-maintainers:
    - astrofrog-conda-forge
    - mwcraig
    - bsipocz
