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

versions:
  github: cython/cython/releases

provides:
  - bin/cython

dependencies:
  python.org: '<3.12'

build:
  script: |
    python-venv.py {{prefix}}/bin/cython
  dependencies:
    pip.pypa.io: '*'

test:
  script: |
    python setup.py build_ext --inplace
    test "$(python -c 'import package_manager')" = "You are using tea"
  env:
    PYTHONPATH: "{{prefix}}/venv/lib/python3.11/site-packages"
