# Description: Simplified packaging of Python modules
# URL: https://github.com/takluyver/flit
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-docutils python3-requests python3-tomli-w

name=python3-flit
version=3.9.0
release=1
source=(https://github.com/takluyver/flit/archive/$version/flit-$version.tar.gz)

build() {
  rm flit-$version/tests/test_sdist.py

  cd flit-$version

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