# Description: hooks for working with Excel files in python3-agate
# URL: https://github.com/wireservice/agate-excel/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-agate python3-olefile python3-openpyxl python3-xlrd

name=python3-agate-excel
version=0.4.2
release=2
source=(https://files.pythonhosted.org/source/a/agate_excel-$version.tar.gz)

build() {
  cd agate_excel-$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/agate_excel-$version.dist-info/licenses
}
