# Description: python module for opening DBF files
# URL: https://github.com/olemb/dbfread
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-build

name=python3-dbfread
version=2.0.7
release=2
source=(https://files.pythonhosted.org/source/d/dbfread-$version.tar.gz)

build() {
  cd dbfread-$version
  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation

  /usr/bin/python3 -m installer --destdir="$PKG" dist/*.whl

  rm -rf "$PKG"/usr/lib/python3.12/site-packages/dbfread-$version.dist-info/licenses
}
