{% set version = "0.4.4" %}
{% set gh_org = "audreyr" %}
{% set gh_repo = "binaryornot" %}


package:
  name: {{ gh_repo }}
  version: {{ version }}

source:
  fn: {{ gh_repo }}-{{ version }}.tar.gz
  url: https://pypi.io/packages/source/{{ gh_repo[0] }}/{{ gh_repo }}/{{ gh_repo }}-{{ version }}.tar.gz
  sha256: 359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061

build:
  noarch: python
  number: 1
  script: python -m pip install --no-deps --ignore-installed .

requirements:
  host:
    - pip
    - python
    - setuptools
  run:
    - python
    - chardet

test:
  source_files:
    - .
  requires:
    - coverage
    # Constrain version of hypothesis so tests don't fail because they rely on
    # what are now deprecated features.  The choice of hypothesis version is
    # based on what was available around the same time as the release of this
    # package; it is not necessarily the last known working version.
    - hypothesis <3.30
    - python
    - setuptools
  commands:
    - python setup.py test

about:
  home: https://github.com/{{ gh_org }}/{{ gh_repo }}
  license: BSD-3-Clause
  summary: >
            Ultra-lightweight pure Python package to check if a file is binary
            or text.

extra:
  recipe-maintainers:
    - bollwyvl
