# Description: Cachy provides a simple yet effective caching library
# URL: https://github.com/sdispater/cachy
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-poetry-core

name=python3-cachy
version=0.3.0
release=1
source=(https://pypi.org/packages/source/c/cachy/cachy-$version.tar.gz)

build() {
  cd cachy-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl

  _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
  rm -rf $PKG/usr/lib/python${_pyver}/site-packages/tests/
}
