# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ratelim
pkgver=0.1.6
pkgrel=5
pkgdesc="Makes it easy to respect rate limits"
url="https://github.com/themiurgo/ratelim"
arch="noarch"
license="MIT"
depends="python3 py3-decorator"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/r/ratelim/ratelim-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ratelim-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="4d074d47278c591182d56d398c827da86c06428a1f994bd443f04903cca2bfe6affdfdd0daaca6115066903607e0216ac0a5f29240fdfe1c1faf5873a55122b0  ratelim-0.1.6.tar.gz"
