{% set version = "1.2.1" %}

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

source:
  fn: rentrez_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rentrez_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rentrez/rentrez_{{ version }}.tar.gz
  sha256: 74cf6dbe1b229518c25221534b20437b53cb663f1473cf9df5a59ca76b76ae84

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

requirements:
  build:
    - r-base
    - r-xml
    - r-httr >=0.5
    - r-jsonlite >=0.9

  run:
    - r-base
    - r-xml
    - r-httr >=0.5
    - r-jsonlite >=0.9

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

about:
  home: http
  license: MIT
  license_file: LICENSE
  summary: Provides an R interface to the NCBI's EUtils API allowing users to search databases
    like GenBank and PubMed, process the results of those searches and pull data into
    their R sessions.

extra:
  recipe-maintainers:
    - ocefpaf
