22 lines
806 B
Plaintext
22 lines
806 B
Plaintext
# Description: supposedly makes exceptions handling and inspection easier
|
|
# URL: https://github.com/sdispater/crashtest
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-pip python3-yaspin
|
|
# Optional: python3-poetry
|
|
|
|
name=python3-crashtest
|
|
version=0.4.1
|
|
release=1
|
|
source=(https://github.com/sdispater/crashtest/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd crashtest-$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 0 --destdir=$PKG dist/*.whl
|
|
else
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps crashtest
|
|
rm -rf $PKG/usr/lib/python*/site-packages/crashtest-$version.dist-info/{INSTALLER,REQUESTED}
|
|
fi
|
|
}
|