distributable:
  url: https://github.com/sivel/speedtest-cli/archive/refs/tags/v{{version}}.tar.gz
  strip-components: 1

versions:
  github: sivel/speedtest-cli
  strip: /^v/

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

build:
  script:
    - python-venv.sh {{prefix}}/bin/speedtest-cli
    - run: ln -s speedtest-cli speedtest
      working-directory: ${{prefix}}/bin

provides:
  - bin/speedtest-cli
  - bin/speedtest

test: speedtest-cli
