distributable:
  url: https://github.com/python-lsp/python-lsp-server/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: python-lsp/python-lsp-server/releases/tags
  strip: /^v/

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

build: python-venv.sh {{prefix}}/bin/pylsp

provides:
  - bin/pylsp

test:
  script: |
    test "$(pylsp --version)" = "pylsp v{{version}}"
