# Description: library with cross-python path, ini-parsing, io, code, log facilities
# URL: https://github.com/pytest-dev/py
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-apipkg python3-iniconfig

name=python3-py
version=1.11.0
release=1
source=(https://github.com/pytest-dev/py/archive/$version/$name-$version.tar.gz)

build() {
  cd py-$version
  rm -r py/_vendored_packages
  export LC_CTYPE=en_US.UTF-8
  export SETUPTOOLS_SCM_PRETEND_VERSION=$version
  /usr/bin/python3 setup.py build
  /usr/bin/python3 setup.py install --prefix=/usr \
    --root=$PKG \
    --skip-build \
    -O1
}
