mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
33 lines
785 B
Bash
33 lines
785 B
Bash
_pkgname="aiolimiter"
|
|
pkgname="python-$_pkgname"
|
|
pkgver=1.2.1
|
|
pkgrel=2
|
|
pkgdesc="An efficient implementation of a rate limiter for asyncio"
|
|
arch=('any')
|
|
depends=(
|
|
python
|
|
python-importlib-metadata
|
|
)
|
|
makedepends=(
|
|
python-build
|
|
python-installer
|
|
python-poetry-core
|
|
python-wheel
|
|
)
|
|
url="https://github.com/mjpieters/aiolimiter"
|
|
license=('MIT')
|
|
|
|
source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
|
|
sha256sums=('e02a37ea1a855d9e832252a105420ad4d15011505512a1a1d814647451b5cca9')
|
|
|
|
build(){
|
|
cd $_pkgname-$pkgver
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package(){
|
|
cd $_pkgname-$pkgver
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|