{% set name = "sniffio" %}
{% set version = "1.3.0" %}

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

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

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

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

test:
  imports:
    - sniffio
    - sniffio._tests
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://github.com/python-trio/sniffio
  license: MIT OR Apache-2.0
  license_file:
    - LICENSE.APACHE2
    - LICENSE.MIT
    - LICENSE
  license_family: Other
  summary: Sniff out which async library your code is running under
  doc_url: https://sniffio.readthedocs.io
  dev_url: https://github.com/python-trio/sniffio

extra:
  recipe-maintainers:
    - nicoddemus
