contrib/python3-poetry-core/Pkgfile

25 lines
711 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-dephell python3-jsonschema python3-lark-parser
name=python3-poetry-core
version=1.0.6
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
dephell deps convert --from pyproject.toml --to setup.py
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr \
--root=$PKG \
-O1 \
--skip-build
}