upgpkg: python-crontab 2.7.1-1

This commit is contained in:
George Rawlinson 2022-12-27 12:31:34 +13:00
parent a8c61fc1fb
commit c73f1df4f0
Signed by: grawlinson
GPG Key ID: E0959FEA8B550539
1 changed files with 30 additions and 16 deletions

View File

@ -1,30 +1,44 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-crontab
pkgver=2.6.0
pkgrel=2
pkgdesc="A module for reading/writing crontab files & accessing the system cron"
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"
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')
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-v$pkgver"
python setup.py build
cd "$pkgname"
python -m build --wheel --no-isolation
}
# requires usage of a deprecated lib (test.support)
#check() {
# cd "$pkgname-v$pkgver"
# PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
#}
check() {
cd "$pkgname"
PYTHONPATH="$(pwd):$PYTHONPATH" python -m unittest
}
package() {
cd "$pkgname-v$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}