mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
https://github.com/niccokunzmann/x-wr-timezone Handling of non-standard X-WR-TIMEZONE icalendar property in Python and Command Line testing/
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-x-wr-timezone
|
|
_pyname=x-wr-timezone
|
|
pkgver=0.0.5
|
|
pkgrel=0
|
|
pkgdesc="Handling of non-standard X-WR-TIMEZONE icalendar property in Python and Command Line"
|
|
url="https://github.com/niccokunzmann/x-wr-timezone"
|
|
arch="noarch"
|
|
license="LGPL-3.0-only"
|
|
depends="python3 py3-icalendar py3-tz"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
source="$_pyname-$pkgver.tar.gz::https://github.com/niccokunzmann/x-wr-timezone/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
# Disable command line test since we aren't installed yet.
|
|
# Disable unnecessary test that adds another dependency.
|
|
PYTHONPATH=. pytest \
|
|
--ignore test/test_command_line.py \
|
|
--ignore test/test_readme.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
b530e96e2e32febf82a4aac9fe1067431c7396a029ca785ade8a8c5e2fe04b1d95e60ecf7ecc9862057bffd3e9dd6a773d14c385cb431d1b22858091f3bd7892 x-wr-timezone-0.0.5.tar.gz
|
|
"
|