# Description: clikit allows you to create beautiful and testable command-line interfaces
# URL: https://github.com/sdispater/clikit
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-crashtest python3-pastel python3-pylev python3-typing_extensions
# Optional: python3-poetry

name=python3-clikit
version=0.6.2
release=1
source=(https://github.com/sdispater/clikit/archive/$version/$name-$version.tar.gz)

build() {
  cd clikit-$version

  if prt-get isinst python3-poetry; then
    /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
    /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
  else
    /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps clikit
  fi
}
