summaryrefslogtreecommitdiff
path: root/python3-tomli/Pkgfile
blob: 762a45c729048077c96659a1b0ad185efb4af7bf (plain)
    1 # Description: A lil' TOML parser
    2 # URL: https://github.com/hukkin/tomli
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: python3-pip
    5 # Optional: python3-flit-core
    6 
    7 name=python3-tomli
    8 version=2.0.1
    9 release=1
   10 source=(https://pypi.python.org/packages/source/t/tomli/tomli-$version.tar.gz)
   11 
   12 build() {
   13   cd tomli-$version
   14 
   15   _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   16 
   17   if prt-get isinst python3-flit-core; 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 tomli
   22   fi
   23 
   24   rm -rf $PKG/usr/lib/python$_pyver/site-packages/tomli-$version.dist-info/{INSTALLER,REQUESTED}
   25 }

Generated by cgit