# Description: hooks for performing structured queries in python3-agate
# URL: https://github.com/wireservice/agate-sql/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-agate python3-sqlalchemy

name=python3-agate-sql
version=0.7.3
release=2
source=(https://files.pythonhosted.org/source/a/agate_sql-$version.tar.gz)

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