blob: 35d4344b38da0eed8937c4de3baf3da26a23156a (
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
|
# Maintainer: ngld <ngld@tproxy.de>
_pyname=token_bucket
pkgname=python-token-bucket
pkgver=0.2.0
pkgrel=1
pkgdesc="Very fast implementation of the token bucket algorithm."
arch=('any')
url="https://github.com/falconry/token-bucket"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://pypi.python.org/packages/74/fb/5c7681fce00acca5df34d63f1b4ee441df72157a92b24e4992f00e69e6c1/token_bucket-0.2.0.tar.gz"
"https://github.com/falconry/token-bucket/raw/0.2.0/LICENSE")
sha256sums=('76305d9dbe875d3b033b5bf208cc2cf78c003129378108ab1bae919a42b108da'
'2d93a9d2eada24cb431338d41bba270d09fa01e7f3eb25ff5e096632f6fde151')
package() {
cd "$srcdir/${_pyname}-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|