| 1 | # Contributor: Antoine Martin (ayakael) <[email protected]> |
| 2 | # Maintainer: Antoine Martin (ayakael) <[email protected]> |
| 3 | pkgname=py3-python-crontab |
| 4 | _pyname="python-crontab" |
| 5 | pkgver=3.4.0 |
| 6 | pkgrel=0 |
| 7 | arch="noarch" |
| 8 | pkgdesc="Crontab module for reading and writing crontab files" |
| 9 | url="https://pypi.python.org/project/python-crontab" |
| 10 | license="BSD-3-Clause" |
| 11 | depends=" |
| 12 | py3-dateutil |
| 13 | " |
| 14 | makedepends=" |
| 15 | py3-setuptools |
| 16 | py3-gpep517 |
| 17 | py3-wheel |
| 18 | " |
| 19 | checkdepends=" |
| 20 | py3-pytest |
| 21 | py3-pytest-django |
| 22 | py3-pytest-timeout |
| 23 | py3-pytest-cov |
| 24 | " |
| 25 | source="https://gitlab.com/doctormo/python-crontab/-/archive/v$pkgver/python-crontab-v$pkgver.tar.gz" |
| 26 | builddir="$srcdir"/$_pyname-v$pkgver |
| 27 | subpackages="$pkgname-pyc" |
| 28 | |
| 29 | build() { |
| 30 | gpep517 build-wheel \ |
| 31 | --wheel-dir .dist \ |
| 32 | --output-fd 3 3>&1 >&2 |
| 33 | } |
| 34 | |
| 35 | check() { |
| 36 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 37 | .testenv/bin/python3 -m installer .dist/*.whl |
| 38 | .testenv/bin/python3 -m pytest -v |
| 39 | } |
| 40 | |
| 41 | package() { |
| 42 | python3 -m installer --destdir="$pkgdir" .dist/*.whl |
| 43 | } |
| 44 | |
| 45 | sha512sums=" |
| 46 | aeeb08c1aa96e4a57330a839922f85689fd6ed95f94f7db37a1154dfd68470ed370db65790f2d71de89355afb97cfe6900823b5194f7254ac51bdad4a610f6b9 python-crontab-v3.4.0.tar.gz |
| 47 | " |