{% set data = load_setup_py_data() %}
{% set version = data.get('version') or 'placehold' %}

package:
  name: q2-diversity
  version: {{ version }}

source:
  path: ../..

build:
  script: make install

requirements:
  build:
    # nodejs is only necessary in the build phase - our build script needs it
    # in order to render out transpiled js assets for various visualizations.
    # once rendered, node is no longer necessary. don't set this in host reqs.
    - nodejs

  host:
    - python {{ python }}
    - setuptools

  run:
    - python {{ python }}
    - numpy
    - scipy {{ scipy }}
    - pandas {{ pandas }}
    - statsmodels
    - seaborn
    # `ipywidgets` included to avoid ShimWarning from
    # `seaborn` imports:
    #  https://github.com/mwaskom/seaborn/issues/874
    - ipywidgets
    - scikit-bio {{ scikit_bio }}
    - scikit-learn {{ scikit_learn }}
    - psutil
    - natsort
    - biom-format {{ biom_format }}
    - qiime2 {{ qiime2_epoch }}.*
    - q2templates {{ qiime2_epoch }}.*
    - q2-types {{ qiime2_epoch }}.*
    - q2-feature-table {{ qiime2_epoch }}.*
    - q2-metadata {{ qiime2_epoch }}.*
    # TODO: `emperor` is also a dependency, but q2-emperor should be in charge
    # of the version pin. Eventually there will not be a direct dependency on
    # `emperor` and this comment can be removed.
    - q2-emperor {{ qiime2_epoch }}.*
    - q2-diversity-lib {{ qiime2_epoch }}.*
    - r-base {{ r_base }}
    - r-vegan >=2.5_3
    - umap-learn

test:
  requires:
    - qiime2 >={{ qiime2 }}
    - q2templates >={{ q2templates }}
    - q2-types >={{ q2_types }}
    - q2-feature-table >={{ q2_feature_table }}
    - q2-metadata >={{ q2_metadata }}
    # TODO: `emperor` is also a dependency, but q2-emperor should be in charge
    # of the version pin. Eventually there will not be a direct dependency on
    # `emperor` and this comment can be removed.
    - q2-emperor >={{ q2_emperor }}
    - q2-diversity-lib >={{ q2_diversity_lib }}
    - pytest

  imports:
    - q2_diversity
    - qiime2.plugins.diversity

about:
  home: https://qiime2.org
  license: BSD-3-Clause
  license_family: BSD
