distributable:
  url: https://github.com/sqlfluff/sqlfluff/archive/{{version}}.tar.gz
  strip-components: 1

versions:
  github: sqlfluff/sqlfluff

dependencies:
  python.org: '>=3.7<3.12'

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

test:
  script:
    - test "$(sqlfluff version)" = "{{version}}"

provides:
  - bin/sqlfluff
