void-packages/srcpkgs/python3-tempora/template
2021-08-31 09:27:54 -04:00

27 lines
943 B
Bash

# Template file for 'python3-tempora'
pkgname=python3-tempora
version=4.1.1
revision=1
wrksrc="tempora-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
depends="python3-setuptools python3-six python3-pytz"
checkdepends="python3-pytest python3-freezegun
python3-jaraco python3-jaraco.functools $depends"
short_desc="Objects and routines pertaining to date and time (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/jaraco/tempora"
distfiles="${PYPI_SITE}/t/tempora/tempora-${version}.tar.gz"
checksum=c54da0f05405f04eb67abbb1dff4448fd91428b58cb00f0f645ea36f6a927950
alternatives="tempora:calc-prorate:/usr/bin/calc-prorate3"
do_check() {
# Test relies on pytest-freezegun, which is not packaged
python3 -m pytest -k 'not get_nearest_year_for_day'
}
post_install() {
vlicense LICENSE
mv "${DESTDIR}/usr/bin/calc-prorate" "${DESTDIR}/usr/bin/calc-prorate3"
}