arch-pkgs/python-crontab/PKGBUILD

45 lines
898 B
Text
Raw Permalink Normal View History

2021-08-26 02:11:03 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-crontab
2023-07-14 20:51:41 +00:00
pkgver=3.0.0
2022-12-26 23:31:34 +00:00
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'
)
2023-07-14 20:51:41 +00:00
_commit='31ce3f134c90b8b2eb235f771744f103a0016453'
2022-12-26 23:31:34 +00:00
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
}