# Maintainer: Carlos Aznarán _base=treestamps pkgname=python-${_base} pkgver=1.0.1 pkgrel=1 pkgdesc="Create timestamp records for recursive operations on directory trees" url="https://github.com/ajslater/${_base}" depends=(python-ruamel-yaml python-termcolor) makedepends=(python-build python-installer python-poetry-core) license=(GPL3) arch=(any) source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz) sha512sums=('22b1bea2b552c9cb838300066ec347bab0844c0509002aaf31c66a028936fde14fcdca78fae7649fbc892fa41f8142d77f44c410f676fcd2b9f7b501274a9ca6') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python tests/unit/*.py } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl }