# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-asyncio-throttle _pkgname=asyncio-throttle pkgver=1.0.2 pkgrel=7 pkgdesc='Simple, easy-to-use throttler for asyncio.' arch=('any') url='https://pypi.org/project/asyncio-throttle/' license=('MIT') depends=('python') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('ac6c34d9e0b6dfa930dbf3606ac9ea27eec65b866866897bfa97c647d80e4a9c0ff2a95cdab144aa8abfd41bcd3851c68f2a7d5c89298de0588faa32419fdbb3') build() { cd "$_pkgname-$pkgver" python setup.py build } package() { cd "$_pkgname-$pkgver" python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build }