{% set name = "poetry-core" %}
{% set version = "1.4.0" %}

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

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

build:
  script: {{ PYTHON }} -m pip install . -vv
  number: 0
  skip: True  # [py<37]

requirements:
  host:
    - python
    - pip
    - wheel
  run:
    - python
    - importlib-metadata >=1.7.0  # [py<38]

test:
  imports:
    - poetry.core
  commands:
    - pip check
  requires:
    - pip

about:
  home: https://github.com/python-poetry/poetry-core
  summary: Poetry PEP 517 Build Backend
  description: Poetry PEP 517 Build Backend & Core Utilities
  license: MIT
  license_family: MIT
  license_file: LICENSE
  dev_url: https://github.com/python-poetry/poetry-core
  doc_url: https://github.com/python-poetry/poetry-core/blob/{{ version }}/README.md

extra:
  recipe-maintainers:
    - ocefpaf
    - xylar
