blob: aef94fa4416523edaa8c4cf9871d4e823a6a1ae6 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Jason van Gumster <fweeb@monsterjavaguns.com>
pkgname=python-rq-scheduler
pkgver=0.10.0
pkgrel=2
pkgdesc="Small package that adds job scheduling capabilities to RQ"
arch=('any')
license=('MIT')
url="https://github.com/rq/rq-scheduler"
makedepends=('python-setuptools')
depends=('python-rq>=0.13' 'python-croniter>=0.3.9' 'python-dateutil')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('746a3496f4091df24fd749f2000d2aa0ba9b7ebd2652e5483c497faa82550d0f')
build() {
cd "rq-scheduler-$pkgver"
python setup.py build
}
check() {
cd "rq-scheduler-$pkgver"
python -m unittest run_tests.py
}
package() {
cd "rq-scheduler-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|