arch-pkgs/python-crontab/PKGBUILD

31 lines
1 KiB
Text
Raw Normal View History

2021-08-26 02:11:03 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-crontab
pkgver=2.6.0
2021-08-26 02:11:03 +00:00
pkgrel=1
pkgdesc="A module for reading/writing crontab files & accessing the system cron"
arch=('any')
url="https://gitlab.com/doctormo/python-crontab"
license=('GPL3')
depends=('python' 'python-croniter' 'python-cron-descriptor')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/doctormo/python-crontab/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
sha512sums=('24bccdc79d246f71e646b4f6c82bc66b73fbc38f2079176a2c8f0fdc5605196387ab5b542edd15acb34f9bae3c7c28b2eae05c9bff4ce01bd7ae30036caa5344')
b2sums=('f1595ad9ff0de971533e2d544acd1054dfbbcc90337c773777db562312eb8e5a904cbe09438c7b10453f47f3efdae834d4609e1810fefc98ee05e6c09baf8650')
2021-08-26 02:11:03 +00:00
build() {
cd "$pkgname-v$pkgver"
python setup.py build
}
# requires usage of a deprecated lib (test.support)
#check() {
# cd "$pkgname-v$pkgver"
# PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
#}
package() {
cd "$pkgname-v$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}