forked from ports/contrib
22 lines
731 B
Plaintext
22 lines
731 B
Plaintext
# 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
|
|
# 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
|
|
}
|