# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-slugify
pkgver=8.0.4
pkgrel=1
pkgdesc="Python module for creating slugs from unicode strings"
url="https://github.com/un33k/python-slugify"
license="MIT"
arch="noarch"
depends="python3 py3-unidecode"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/un33k/python-slugify/archive/v$pkgver/py3-slugify-$pkgver.tar.gz"
builddir="$srcdir/python-slugify-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 test.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/python_slugify-$pkgver-py3-none-any.whl
}

sha512sums="
b401e574f23fa77152f8c64f15263766ed7d081759e93c28fce5fa32495eb4921701030b395ca1c738ca46a509e54bc987d81ff07fa602dd42bfa630a49aa4a0  py3-slugify-8.0.4.tar.gz
"
