{% set name = "dropbox" %}
{% set version = "11.36.1" %}


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

source:
  url: https://github.com/dropbox/dropbox-sdk-python/archive/v{{ version }}.tar.gz
  sha256: 29e57afad30db4bba282dbb38a30e77565b9524944c69502a891965d0aaad0ac

build:
  number: 0
  # stone package is not available on s390x
  skip: true  # [linux and s390x]
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv

requirements:
  host:
    - pip
    - pytest-runner ==5.2.0
    - python
    - wheel
    - setuptools
  run:
    - python
    - requests >=2.16.2
    - six >=1.12.0
    - stone >=2

test:
  requires:
    - python
    - pip
    - mock
    - pytest-mock
    - coverage
  imports:
    - dropbox
  commands:
    - pip check
    - pytest test/unit/test_dropbox_unit.py
  source_files:
    - test

about:
  home: https://www.dropbox.com/developers
  summary: Official Dropbox API Client
  description: The Official Dropbox API V2 SDK for Python
  license: MIT
  license_family: MIT
  license_file: LICENSE
  dev_url: https://github.com/dropbox/dropbox-sdk-python
  doc_url: https://dropbox-sdk-python.readthedocs.io/en/latest/

extra:
  recipe-maintainers:
    - guillochon
    - BastianZim
