{% set name = "usort" %}
{% set version = "1.0.5" %}

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

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

build:
  entry_points:
    - usort = usort.__main__:main
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv
  number: 0

requirements:
  host:
    - python >=3.7
    - setuptools-scm
    - setuptools >=38.3.0
    - pip
  run:
    - python >=3.7
    - attrs >=21.2.0
    - click >=7.0.0
    - libcst >=0.3.7
    - moreorless >=0.3.0
    - stdlibs >=2021.4.1
    - toml >=0.10.0
    - trailrunner >=1.0

test:
  imports:
    - usort
  commands:
    - pip check
    - usort --help
  requires:
    - pip

about:
  home: https://github.com/facebook/usort
  summary: A small, safe import sorter
  license: MIT
  license_file:
    - LICENSE

extra:
  recipe-maintainers:
    - dstoeckel
    - nicornk

Add recipe for the usort package from PyPI
Add recipe for the usort package from PyPI

Dependency of ufmt
