arch-pkgs/python-crontab/PKGBUILD

45 lines
898 B
Text
Raw Normal View History

2021-08-26 02:11:03 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-crontab
2022-12-26 23:31:34 +00:00
pkgver=2.7.1
pkgrel=1
pkgdesc='A module for reading/writing crontab files & accessing the system cron'
2021-08-26 02:11:03 +00:00
arch=('any')
2022-12-26 23:31:34 +00:00
url='https://gitlab.com/doctormo/python-crontab'
2021-08-26 02:11:03 +00:00
license=('GPL3')
depends=('python' 'python-croniter' 'python-cron-descriptor')
2022-12-26 23:31:34 +00:00
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
_commit='ded8f0825922b524a5c63bdf5964f6be1760b766'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
2021-08-26 02:11:03 +00:00
build() {
2022-12-26 23:31:34 +00:00
cd "$pkgname"
python -m build --wheel --no-isolation
2021-08-26 02:11:03 +00:00
}
# requires usage of a deprecated lib (test.support)
2022-12-26 23:31:34 +00:00
check() {
cd "$pkgname"
PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
}
2021-08-26 02:11:03 +00:00
package() {
2022-12-26 23:31:34 +00:00
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
2021-08-26 02:11:03 +00:00
}