{% set name = "chardet" %}
{% set version = "3.0.4" %}
{% set sha256 = "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae" %}

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

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

build:
  number: 0
  noarch: python
  script: python setup.py install --single-version-externally-managed --record=record.txt
  entry_points:
    - chardetect = chardet.cli.chardetect:main

requirements:
  build:
    - python
    - setuptools
    - pytest-runner
  run:
    - python

test:
  imports:
    - chardet
  commands:
    - chardetect --help

about:
  home: https://github.com/chardet/chardet
  doc_url: http://chardet.readthedocs.org
  dev_url: https://github.com/chardet/chardet
  license: LGPL2
  license_family: GPL
  license_file: LICENSE
  summary: Universal character encoding detector

{% set name = "chardet" %}
{% set version = "3.0.4" %}
{% set sha256 = "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae" %}

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

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

build:
  number: 0
  script: python setup.py install --single-version-externally-managed --record=record.txt
  entry_points:
    - chardetect = chardet.cli.chardetect:main

requirements:
  build:
    - python
    - setuptools
    - pytest-runner
  run:
    - python

test:
  imports:
    - chardet
  commands:
    - chardetect --help

about:
  home: https://github.com/chardet/chardet
  doc_url: http://chardet.readthedocs.org
  dev_url: https://github.com/chardet/chardet
  license: LGPL2
  license_family: GPL
  license_file: LICENSE
  summary: Universal character encoding detector

Remove noarch: python from chardet recipe
Remove noarch: python from chardet recipe

chardet is required for conda and therefore should be built as a tranditional
package.
