1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-slugify/APKBUILD
2023-02-26 16:50:05 +01:00

32 lines
901 B
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-slugify
pkgver=8.0.1
pkgrel=0
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"
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="
721089244c90f784e49259ee70caa0908d8523c2cf42c8fd57804a73017a815311a9cc9981c1f70a8c2f7cd7e01d77eedf8f9bd3c9d5c55ac4d5f72dbe512b34 py3-slugify-8.0.1.tar.gz
"