{% set version = '0.9.0' %}

package:
  name: r-taxize
  version: {{ version }}

source:
  fn: taxize_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/taxize_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/taxize/taxize_{{ version }}.tar.gz
  sha256: 62b45e5ea14c95ef6bbfa9bbdbd0aba6a99ebf12f03cd292b77954cca135251f

build:
  number: 0
  script: R CMD INSTALL --build .
  skip: True  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-ape
    - r-bold >=0.3.5
    - r-data.table
    - r-foreach
    - r-httr >=1.2.1
    - r-jsonlite
    - r-natserv >=0.1.4
    - r-plyr
    - r-reshape2
    - r-ritis >=0.5.0
    - r-rotl >=3.0.0
    - r-rredlist >=0.3.0
    - r-stringr
    - r-tibble >=1.2
    - r-wikitaxa >=0.1.4
    - r-worrms >=0.1.0
    - r-xml2 >=1.0.0
  run:
    - r-base
    - r-ape
    - r-bold >=0.3.5
    - r-data.table
    - r-foreach
    - r-httr >=1.2.1
    - r-jsonlite
    - r-natserv >=0.1.4
    - r-plyr
    - r-reshape2
    - r-ritis >=0.5.0
    - r-rotl >=3.0.0
    - r-rredlist >=0.3.0
    - r-stringr
    - r-tibble >=1.2
    - r-wikitaxa >=0.1.4
    - r-worrms >=0.1.0
    - r-xml2 >=1.0.0

test:
  commands:
    - $R -e "library('taxize')"  # [not win]
    - "\"%R%\" -e \"library('taxize')\""  # [win]

about:
  home: https://cran.r-project.org/web/packages/taxizes
  license: MIT
  license_file: LICENSE
  summary: Interacts with a suite of web 'APIs' for taxonomic tasks, such as getting database
    specific taxonomic identifiers, verifying species names, getting taxonomic hierarchies,
    fetching downstream and upstream taxonomic names, getting taxonomic synonyms, converting
    scientific to common names and vice versa, and more.

extra:
  recipe-maintainers:
    - ocefpaf
