{% set name = "json5" %}
{% set version = "0.10.0" %}
{% set python_min = python_min|default("3.8") %}

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

source:
  url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/json5-{{ version }}.tar.gz
  sha256: e66941c8f0a02026943c52c2eb34ebeb2a6f819a0be05920a6f5243cd30fd559

build:
  entry_points:
    - pyjson5=json5.tool:main
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
  number: 1

requirements:
  host:
    - python {{ python_min }}
    - pip
    - setuptools
  run:
    - python >={{ python_min }}

test:
  imports:
    - json5
  commands:
    - pip check
    - pyjson5 --help
  requires:
    - python {{ python_min }}
    - pip

about:
  home: https://github.com/dpranke/pyjson5
  summary: A Python implementation of the JSON5 data format.
  license: Apache-2.0
  license_file: LICENSE

extra:
  recipe-maintainers:
    - rxm7706
    - ian-r-rose
