# Description: python wrapper for the ICU C++ libraries
# URL: https://gitlab.pyicu.org/main/pyicu
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-build icu

name=python3-pyicu
version=2.16
release=2
source=(https://files.pythonhosted.org/source/p/pyicu-$version.tar.gz)

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