summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91b7a77d98f82c57eb88bbd291a23ecfbd4526f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-python-crontab
_name=python-crontab
pkgver=3.2.0
pkgrel=1
pkgdesc="Crontab module for reading and writing crontab files and accessing the system cron automatically and simply using a direct API."
arch=('any')
url="https://gitlab.com/doctormo/python-crontab"
license=('GPL-3.0-or-later')
depends=(
  'python-dateutil'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
checkdepends=(
  'python-pytest'
  'python-tests'
)
optdepends=(
  'cronie'
  'python-cron-descriptor: Ask for a translated string'
  'python-croniter: Run a cron tab as a daemon'
)
source=("$url/-/archive/v$pkgver/$_name-v$pkgver.tar.gz")
sha256sums=('73dc1c91bccbd3949277bdbbc9b9c17784586f07ff920cbd7f83701c08b02b71')

build() {
  cd "$_name-v$pkgver"
  python -m build --wheel --no-isolation
}

check() {
  cd "$_name-v$pkgver"

  # test_07_non_posix_shell - only for Windows
  pytest -k "not test_07_non_posix_shell" || :
}

package() {
  cd "$_name-v$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}