{% set name = "dustmaps" %}
{% set version = "1.0.8" %}
{% set sha256 = "6e128cfca24c3b3909ad0a590f3db34b96557137a33f653a5d883bbc9fcf3a5d" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv
  skip: true  # [win]

requirements:
  build:
    - python                                 # [build_platform != target_platform]
    - cross-python_{{ target_platform }}     # [build_platform != target_platform]
  host:
    - python
    - pip
  run:
    - python
    - numpy
    - scipy
    - astropy
    - h5py
    - healpy
    - requests
    - progressbar2
    - six

test:
  imports:
    - dustmaps

about:
  home: https://github.com/gregreen/dustmaps
  license: GPL-2.0
  license_file: LICENSE.txt
  summary: A uniform interface for a number of 2D and 3D maps of interstellar dust reddening/extinction.
  doc_url: http://dustmaps.readthedocs.io/
  dev_url: https://github.com/gregreen/dustmaps

extra:
  recipe-maintainers:
    - guillochon
    - pkgw
