# Description: python data analysis library, optimized for humans instead of machines
# URL: https://github.com/wireservice/agate/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-isodate python3-leather python3-parsedatetime python3-pyicu python3-pytimeparse python3-slugify

name=python3-agate
version=1.14.2
release=1
source=(https://files.pythonhosted.org/packages/source/a/agate/agate-$version.tar.gz)

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