mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-python-crontab
|
|
_pyname="python-crontab"
|
|
pkgver=3.2.0
|
|
pkgrel=0
|
|
arch="noarch"
|
|
pkgdesc="Crontab module for reading and writing crontab files"
|
|
url="https://pypi.python.org/project/python-crontab"
|
|
license="BSD-Clause-3"
|
|
depends="
|
|
py3-dateutil
|
|
"
|
|
makedepends="
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-django
|
|
py3-pytest-timeout
|
|
py3-pytest-cov
|
|
"
|
|
source="https://gitlab.com/doctormo/python-crontab/-/archive/v$pkgver/python-crontab-v$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pyname-v$pkgver
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer --destdir="$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c39649c18ad74b080198c498bd439a7bfd5c38fd6bbb44a269b2c0fae14d58a8c57a6da2be8ba365d8dc018b7f1d522dfa7c32713b3c3e67782d044fe72f1071 python-crontab-v3.2.0.tar.gz
|
|
"
|