contrib/python3-poetry/Pkgfile

23 lines
959 B
Plaintext

# Description: python3 packaging and dependency management made easy
# URL: https://poetry.eustace.io/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-cachecontrol python3-cachy python3-cleo python3-crashtest python3-keyring python3-lockfile python3-pkginfo python3-poetry-core python3-requests-toolbelt python3-virtualenv
name=python3-poetry
version=1.1.10
release=1
source=(https://github.com/sdispater/poetry/archive/$version/$name-$version.tar.gz
0001-Suppress-dependency-versions-which-are-known-to-be-t.patch
0001-tests-cleanup-cache-and-http-usage.patch)
build() {
cd poetry-$version
patch -Np1 -i $SRC/0001-Suppress-dependency-versions-which-are-known-to-be-t.patch
patch -Np1 -i $SRC/0001-tests-cleanup-cache-and-http-usage.patch
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 \
--skip-build
}