{% set version = "4.12.2" %}

package:
  name: beautifulsoup4-split
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/b/beautifulsoup4/beautifulsoup4-{{ version }}.tar.gz
  sha256: 492bbc69dca35d12daac71c4db1bfff0c876c00ef4a2ffacce226d4638eb72da

build:
  number: 0
  skip: True  # [py<36]

outputs:
  - name: beautifulsoup4
    script: build_base.bat  # [win]
    script: build_base.sh  # [not win]
    requirements:
      host:
        - hatchling >=1.8.0
        - pip
        - python
        - setuptools
        - wheel
      run:
        - python
        - soupsieve >1.2
    test:
      imports:
        - bs4
        - bs4.builder
      requires:
        - pip
      commands:
        - pip check

  - name: bs4
    build:
      noarch: generic
    requirements:
      host:
        - hatchling >=1.8.0
        - python
        - pip
        - setuptools
        - wheel
      run:
        - python
        - {{ pin_subpackage('beautifulsoup4', max_pin="x.x.x") }}
    test:
      imports:
        - bs4
      requires:
        - pip
        - pytest
      commands:
        - pip check
        - pytest --pyargs bs4

about:
  home: https://www.crummy.com/software/BeautifulSoup/
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: Python library designed for screen-scraping
  description: |
    Beautiful Soup is a library for pulling data out of HTML and XML files.
    It provides ways of navigating, searching, and modifying parse trees.
  doc_url: https://beautiful-soup-4.readthedocs.io/en/latest/
  dev_url: https://code.launchpad.net/beautifulsoup

extra:
  recipe-maintainers:
    - jschueller
    - nehaljwani
