blob: 887a069846b9330544d664fb204b91a9659e3173 (
plain)
1 # Description: Poetry PEP 517 Build Backend & Core Utilities
2 # URL: https://github.com/python-poetry/poetry-core
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-dephell python3-jsonschema python3-lark-parser
5
6 name=python3-poetry-core
7 version=1.0.7
8 release=2
9 source=(https://github.com/python-poetry/poetry-core/archive/$version/$name-$version.tar.gz poetry-core-1.0.2-devendor.patch)
10
11 build() {
12 cd poetry-core-$version
13 patch -Np1 -i $SRC/poetry-core-1.0.2-devendor.patch
14 sed -i '/^__version__/!d' poetry/core/__init__.py
15 rm -r poetry/core/_vendor
16 rm poetry/__init__.py
17
18 dephell deps convert --from pyproject.toml --to setup.py
19
20 /usr/bin/python3 setup.py build
21 /usr/bin/python3 setup.py install --prefix=/usr \
22 --root=$PKG \
23 -O1 \
24 --skip-build
25 }
|