{% set name = "anaconda-cloud-auth" %}
{% set version = "0.1.3" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/anaconda_cloud_auth-{{ version }}.tar.gz
  sha256: 60e0f839718e3e20aaa92bfd8fe1b32059228124c4dc31a7e48675cda69ff1ce

build:
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv
  number: 0
  # trigger

requirements:
  host:
    - python
    - hatchling
    - hatch-vcs >=0.3
    - setuptools-scm >=7.1
    - pip
  run:
    - python
    - keyring
    - pkce
    - python-dotenv
    - pydantic <2.0
    - pyjwt
    - requests
    - cryptography >=3.4.0

test:
  imports:
    - anaconda_cloud_auth
  commands:
    - pip check
    - python -c "from anaconda_cloud_auth import __version__; assert __version__ == \"{{ version }}\""
  requires:
    - pip

about:
  summary: A client auth library for Anaconda.cloud APIs
  description: |
    A client library for Anaconda.cloud APIs to authenticate and securely store API keys.
    This package also provides a requests client class that handles loading the API key 
    for requests made to Anaconda Cloud services.
  home: https://anaconda.cloud
  doc_url: https://pypi.org/project/anaconda-cloud-auth/
  license: BSD-3-Clause
  license_file: LICENSE
  license_family: BSD

extra:
  recipe-maintainers:
    - albertdefusco
    - mattkram
