{% set version = '1.5.2' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-gargle
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/gargle_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/gargle/gargle_{{ version }}.tar.gz
  sha256: 4a5beb046eb50a168b4baf5d1fcd8ac20d698e7fcb6b6ef46a436ded5b039001

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: aws.ec2metadata, aws.signature, covr, httpuv, knitr, rmarkdown, sodium, spelling, testthat (>= 3.1.7)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-cli >=3.0.1
    - r-fs >=1.3.1
    - r-glue >=1.3.0
    - r-httr >=1.4.5
    - r-jsonlite
    - r-lifecycle
    - r-openssl
    - r-rappdirs
    - r-rlang >=1.1.0
    - r-withr

  run:
    - r-base
    - r-cli >=3.0.1
    - r-fs >=1.3.1
    - r-glue >=1.3.0
    - r-httr >=1.4.5
    - r-jsonlite
    - r-lifecycle
    - r-openssl
    - r-rappdirs
    - r-rlang >=1.1.0
    - r-withr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('gargle')"           # [not win]
    - "\"%R%\" -e \"library('gargle')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://gargle.r-lib.org, https://github.com/r-lib/gargle
  license: MIT
  summary: Provides utilities for working with Google APIs <https://developers.google.com/apis-explorer>.  This
    includes functions and classes for handling common credential types and for preparing,
    executing, and processing HTTP requests.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: gargle
# Title: Utilities for Working with Google APIs
# Version: 1.5.2
# Authors@R: c( person("Jennifer", "Bryan", , "jenny@posit.co", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6983-2759")), person("Craig", "Citro", , "craigcitro@google.com", role = "aut"), person("Hadley", "Wickham", , "hadley@posit.co", role = "aut", comment = c(ORCID = "0000-0003-4757-117X")), person("Google Inc", role = "cph"), person("Posit Software, PBC", role = c("cph", "fnd")) )
# Description: Provides utilities for working with Google APIs <https://developers.google.com/apis-explorer>.  This includes functions and classes for handling common credential types and for preparing, executing, and processing HTTP requests.
# License: MIT + file LICENSE
# URL: https://gargle.r-lib.org, https://github.com/r-lib/gargle
# BugReports: https://github.com/r-lib/gargle/issues
# Depends: R (>= 3.6)
# Imports: cli (>= 3.0.1), fs (>= 1.3.1), glue (>= 1.3.0), httr (>= 1.4.5), jsonlite, lifecycle, openssl, rappdirs, rlang (>= 1.1.0), stats, utils, withr
# Suggests: aws.ec2metadata, aws.signature, covr, httpuv, knitr, rmarkdown, sodium, spelling, testthat (>= 3.1.7)
# VignetteBuilder: knitr
# Config/Needs/website: tidyverse/tidytemplate
# Config/testthat/edition: 3
# Encoding: UTF-8
# Language: en-US
# RoxygenNote: 7.2.3
# NeedsCompilation: no
# Packaged: 2023-07-20 18:17:52 UTC; jenny
# Author: Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), Craig Citro [aut], Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Google Inc [cph], Posit Software, PBC [cph, fnd]
# Maintainer: Jennifer Bryan <jenny@posit.co>
# Repository: CRAN
# Date/Publication: 2023-07-20 18:50:08 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
