{% set name = "vl-convert-python" %}
{% set version = "0.5.0" %}

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

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

build:
  script: {{ PYTHON }} -m pip install . -vv
  number: 0

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('m2w64_c') }}  # [win]
    - rust >=1.64.0
  host:
    - python >=3.7
    - pip
    - maturin
  run:
    - python >=3.7

test:
  imports:
    - vl_convert
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://github.com/jonmmease/vl-convert
  summary: Convert Vega-Lite chart specifications to SVG, PNG, or Vega
  license: BSD-3-Clause
  license_file:
    - LICENSE
    - thirdparty_font.md
    - thirdparty_javascript.md
    - thirdparty_rust.yaml

extra:
  recipe-maintainers:
    - jonmmease

{% set name = "vl-convert-python" %}
{% set version = "0.5.0" %}

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

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

build:
  script: {{ PYTHON }} -m pip install . -vv
  number: 0

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('m2w64_c') }}  # [win]
    - rust >=1.64.0
  host:
    - python
    - pip
    - maturin
  run:
    - python

test:
  imports:
    - vl_convert
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://github.com/jonmmease/vl-convert
  summary: Convert Vega-Lite chart specifications to SVG, PNG, or Vega
  license: BSD-3-Clause
  license_file:
    - LICENSE
    - thirdparty_font.md
    - thirdparty_javascript.md
    - thirdparty_rust.yaml

extra:
  recipe-maintainers:
    - jonmmease

Remove python version constraint (as this is not a noarch package)
Remove python version constraint (as this is not a noarch package)
