2021-06-14 19:51:46 +00:00
|
|
|
# Description: Cachy provides a simple yet effective caching library
|
|
|
|
# URL: https://github.com/sdispater/cachy
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-07-10 19:02:44 +02:00
|
|
|
# Depends on: python3-pip
|
|
|
|
# Optional: python3-poetry
|
2021-06-14 19:51:46 +00:00
|
|
|
|
|
|
|
name=python3-cachy
|
|
|
|
version=0.3.0
|
|
|
|
release=1
|
|
|
|
source=(https://files.pythonhosted.org/packages/source/c/cachy/cachy-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd cachy-$version
|
2022-07-10 19:02:44 +02:00
|
|
|
|
|
|
|
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
|
|
|
|
|
|
|
if prt-get isinst python3-poetry; then
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
|
|
|
|
else
|
|
|
|
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps cachy
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/lib/python$_pyver/site-packages/cachy-$version.dist-info/{INSTALLER,REQUESTED}
|
2021-06-14 19:51:46 +00:00
|
|
|
}
|