{% set name = "Flask-Admin" %}
{% set version = "1.6.0" %}
{% set compress_type = "tar.gz" %}
{% set hash_type = "sha256" %}
{% set hash_val = "424ffc79b7b0dfff051555686ea12e86e48dffacac14beaa319fb4502ac40988" %}

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

source:
  url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ compress_type }}
  {{ hash_type }}: {{ hash_val }}

build:
  number: 0
  skip: true  # [py<36]
  script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"

requirements:
  host:
    - python
    - pip
    - wheel
    - setuptools

  run:
    - python
    - flask >=0.7
    - wtforms
    # Required for flask_admin.contrib.appengine:
    # - wtforms-appengine
    # Required for flask_admin.contrib.geoa:
    # - geoalchemy2
    # - shapely
    # Required for flask_admin.contrib.mongoengine:
    # - flask-mongoengine
    # Required for flask_admin.contrib.peewee and flask_admin.contrib.peeweemodel:
    # - peewee
    # - wtf-peewee
    #  Required for flask_admin.contrib.pymongo:
    # - pymongo
    # Required for flask_admin.contrib.sqla and flask_admin.contrib.sqlamodel:
    # - sqlalchemy

test:
  imports:
    - flask_admin
    - flask_admin.contrib
    - flask_admin.contrib.fileadmin
    - flask_admin.form
    - flask_admin.model
    - flask_admin.translations
  requires:
    - pip
  commands:
    - pip check

about:
  home: https://github.com/flask-admin/flask-admin/
  license: BSD-3-Clause
  license_file: LICENSE
  license_family: BSD
  license_url: https://github.com/flask-admin/flask-admin/blob/master/LICENSE
  summary: 'Simple and extensible admin interface framework for Flask'
  doc_url: https://flask-admin.readthedocs.io/en/latest/
  doc_source_url: https://github.com/flask-admin/flask-admin/blob/master/doc/index.rst
  dev_url: https://github.com/flask-admin/flask-admin/
  description: |
    Flask-Admin is a batteries-included, simple-to-use Flask
    extension that lets you add admin interfaces to Flask
    applications. It is inspired by the django-admin package,
    but implemented in such a way that the developer has 
    total control of the look, feel and functionality of the
    resulting application.

extra:
  recipe-maintainers:
    - pmlandwehr
    - xylar
