# Description: utilities for converting to and working with CSV, the king of tabular file formats
# URL: https://github.com/wireservice/csvkit/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-agate-dbf python3-agate-excel python3-agate-sql python3-babel python3-dateutil

name=python3-csvkit
version=2.2.0
release=1
source=(https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-$version.tar.gz)

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