distributable:
  url: https://github.com/Kaggle/kaggle-api/archive/refs/tags/{{version}}.tar.gz
  strip-components: 1
versions:
  github: Kaggle/kaggle-api
dependencies:
  pkgx.sh: ^1
build:
  dependencies:
    python.org: ^3.12
    linux:
      llvm.org: '*'
  script:
    - bkpyvenv stage {{prefix}} {{version}}
    - ${{prefix}}/venv/bin/pip install .
    - bkpyvenv seal {{prefix}} kaggle
provides:
  - bin/kaggle
test:
  script:
    - mkdir -p $HOME/.kaggle
    - echo '{"username":"testname","key":"testkey"}' > $HOME/.kaggle/kaggle.json
    - kaggle --version | grep {{version}}
