contrib/python3-poetry-core/Pkgfile

21 lines
681 B
Plaintext

# Description: Poetry PEP 517 Build Backend & Core Utilities
# URL: https://github.com/python-poetry/poetry-core
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-install python3-jsonschema python3-lark-parser python3-tomlkit
name=python3-poetry-core
version=1.0.8
release=1
source=(https://github.com/python-poetry/poetry-core/archive/$version/$name-$version.tar.gz)
build() {
cd poetry-core-$version
sed -i '/^__version__/!d' poetry/core/__init__.py
rm -r poetry/core/_vendor
rm poetry/__init__.py
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m install --optimize=1 --destdir=$PKG dist/*.whl
}