# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-schedule
pkgver=1.2.2
pkgrel=0
pkgdesc="Job scheduling for humans"
url="https://github.com/dbader/schedule"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-mock"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dbader/schedule/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/schedule-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
851b2affa4b04e4b080f87dafcc2cbb2807cdcb14232471ab1703950a27198d5fe9740d4adb52de38d271fc3b007d155a5e43225a10cdf010f7cff37c95e2e95  py3-schedule-1.2.2.tar.gz
"
