distributable:
  url: https://downloads.sourceforge.net/project/docutils/docutils/{{version.marketing}}/docutils-{{version.marketing}}.tar.gz
  strip-components: 1

versions:
  url: https://sourceforge.net/projects/docutils/files/docutils/
  match: /docutils\/\d+\.\d+(\.\d+)?\/"/
  strip:
    - /docutils\//
    - /\/"/

dependencies:
  python.org: ~3.11

build:
  script: |
    python-venv.sh {{prefix}}/bin/docutils


provides:
  - bin/docutils

test:
  fixture: |
    - This is a bullet list.
    - Bullets can be "*", "+", or "-".

  script: |
    docutils $FIXTURE test.html
