{% set name = "geocat-f2py" %}
{% set version = "2022.08.0" %}

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

source:
  # url: http://github.com/NCAR/{{ name }}/archive/v{{ version }}.tar.gz # For building from a specific tag's tarball
  # sha256:
  git_tag: v{{ version }}   # For building from a specific tag
  # git_rev: april # For building from main branch for debugging purposes
  git_url: https://github.com/NCAR/{{ name }}.git

build:
  number: 0
  skip: true  # [py<38 or win]

requirements:
  build:
    - python                              # [build_platform != target_platform]
    - pip                                 # [build_platform != target_platform]
    - setuptools                          # [build_platform != target_platform]
    - numpy >=1.22                        # [build_platform != target_platform]
    - {{ compiler('fortran') }}
    - cross-python_{{ target_platform }}  # [build_platform != target_platform]
  host:
    - python
    - pip
    - setuptools
    - numpy >=1.22
    - {{ compiler('fortran') }}
  run:
    - python
    - numpy >=1.22
    - xarray
    - dask

test:
  requires:
    - pytest
  imports:
    - geocat
    - geocat.f2py
  commands:
    - pytest test
  source_files:
    - test

about:
  home: https://geocat.ucar.edu/
  summary: 'GeoCAT-f2py wraps, in Python, the compiled language implementations of some of the computational functions found under the GeoCAT-comp umbrella.'
  dev_url: https://github.com/NCAR/{{ name }}
  license: Apache-2.0
  license_file: LICENSE

extra:
  recipe-maintainers:
    - pilotchute # A. Kootz https://github.com/pilotchute
    - erogluorhan # O. Eroglu https://github.com/erogluorhan
    - anissa111 # A. Zacharias https://github.com/anissa111
    - michaelavs # M. Sizemore https://github.com/michaelavs
