2022-02-12 16:47:24 +01:00
|
|
|
# Description: A lil' TOML writer
|
|
|
|
# URL: https://github.com/hukkin/tomli-w
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-03-31 16:08:11 +02:00
|
|
|
# Depends on: python3-poetry
|
|
|
|
# Optional: python3-flit-core
|
2022-02-12 16:47:24 +01:00
|
|
|
|
|
|
|
name=python3-tomli-w
|
|
|
|
version=1.0.0
|
|
|
|
release=1
|
|
|
|
source=(https://github.com/hukkin/tomli-w/archive/$version/tomli-w-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd tomli-w-$version
|
|
|
|
|
2023-03-31 16:08:11 +02:00
|
|
|
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
|
|
|
|
|
|
|
if prt-get isinst python3-flit-core; then
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
|
2022-02-12 16:47:24 +01:00
|
|
|
else
|
2023-03-31 16:08:11 +02:00
|
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --compile --no-deps tomli-w==$version
|
2022-02-12 16:47:24 +01:00
|
|
|
fi
|
2023-03-31 16:08:11 +02:00
|
|
|
|
|
|
|
rm -rf $PKG/usr/lib/python$_pyver/site-packages/tomli_w-$version.dist-info/{INSTALLER,REQUESTED}
|
2022-02-12 16:47:24 +01:00
|
|
|
}
|