# Description: python library for making slugs out of arbitrary unicode strings
# URL: https://github.com/un33k/python-slugify
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-unidecode python3-build

name=python3-slugify
version=8.0.4
release=1
source=(https://files.pythonhosted.org/packages/source/p/python-slugify/python-slugify-$version.tar.gz)

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