# Description: Python project management
# URL: https://github.com/dephell/dephell
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-aiohttp python3-bowler python3-cerberus python3-colorama python3-dephell-archive python3-dephell-argparse python3-dephell-changelogs python3-dephell-discover python3-dephell-licenses python3-dephell-links python3-dephell-markers python3-dephell-setuptools python3-dephell-shells python3-dephell-venvs python3-dephell-versioning python3-html5lib python3-jinja2 python3-m2r python3-pygments python3-ruamel-yaml python3-tabulate python3-tomlkit python3-yaspin

name=python3-dephell
version=0.8.3
release=2
source=(https://files.pythonhosted.org/packages/source/d/dephell/dephell-$version.tar.gz
	0001-Do-not-override-the-system-SSL-certificates-with-the.patch)

build() {
  cd dephell-$version
  patch -p1 -i $SRC/0001-Do-not-override-the-system-SSL-certificates-with-the.patch
  sed -i 's/pip<=19.3.1,>=18.0/pip/' setup.py
  /usr/bin/python3 setup.py build
  /usr/bin/python3 setup.py install --prefix=/usr \
    --root=$PKG \
    --skip-build
}
