summaryrefslogtreecommitdiff
path: root/python3-cachy/Pkgfile
blob: c905f8ba4bce006c912c1f96b27105c794737d6f (plain)
    1 # Description: Cachy provides a simple yet effective caching library
    2 # URL: https://github.com/sdispater/cachy
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: python3-pip
    5 # Optional: python3-poetry
    6 
    7 name=python3-cachy
    8 version=0.3.0
    9 release=1
   10 source=(https://files.pythonhosted.org/packages/source/c/cachy/cachy-$version.tar.gz)
   11 
   12 build() {
   13   cd cachy-$version
   14 
   15   _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   16 
   17   if prt-get isinst python3-poetry; then
   18     /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
   19     /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
   20   else
   21     /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps cachy
   22   fi
   23 
   24   rm -rf $PKG/usr/lib/python$_pyver/site-packages/cachy-$version.dist-info/{INSTALLER,REQUESTED}
   25 }

Generated by cgit