summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bea1c4e9e947acc9df93bc4beebe926ce072e58 (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
31
32
33
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: SteamedFish <steamedfish@hotmail.com>

pkgname=python-aiocron
pkgver=2.1
pkgrel=1
pkgdesc="Provide a decorator to run function at time"
arch=('any')
url="https://github.com/gawel/aiocron"
license=('MIT')
changelog=CHANGES.rst
depends=('python-tzlocal' 'python-croniter' 'python-cronsim' 'python')
makedepends=('python-build' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest-cov')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/aiocron/aiocron-$pkgver.tar.gz")
sha256sums=('1bb65a36aee137e8833592783956e0c7dc478bc3e9273fc2841d5d0c6045e4d2')

build() {
	cd "aiocron-$pkgver"
	python -m build --wheel --no-isolation
}

check() {
	cd "aiocron-$pkgver"
	pytest
}

package() {
	cd "aiocron-$pkgver"
	PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
}