summaryrefslogtreecommitdiff
path: root/testing/py3-shortuuid/APKBUILD
blob: 33dae724af7781db0181a9a6a209804fed54ea63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer:
pkgname=py3-shortuuid
_pkgname=shortuuid
pkgver=1.0.9
pkgrel=1
pkgdesc="Python library that generates short, pretty, unambiguous unique IDs"
url="https://pypi.python.org/pypi/shortuuid/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-django"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/shortuuid-$pkgver"

replaces="py-shortuuid" # Backwards compatibility
provides="py-shortuuid=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
fb5d9ff4fc44ce4b45862bcd574f1396e161a8571db801017edd2c262ed25ad12e067e6afca2c96392120d4080535d6b305d88c58527d2ebaf3145d95cfaf003  shortuuid-1.0.9.tar.gz
"