44 lines
898 B
Bash
44 lines
898 B
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
pkgname=python-crontab
|
|
pkgver=2.7.1
|
|
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=(
|
|
'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//'
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
# requires usage of a deprecated lib (test.support)
|
|
check() {
|
|
cd "$pkgname"
|
|
PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|