2025-01-11 15:24:50 -05:00

22 lines
778 B
Bash

# Template file for 'python3-freezegun'
pkgname=python3-freezegun
version=1.5.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-dateutil"
checkdepends="${depends} python3-pytest-xdist"
short_desc="Let your Python tests travel through time"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/spulec/freezegun"
changelog="https://raw.githubusercontent.com/spulec/freezegun/master/CHANGELOG"
distfiles="${PYPI_SITE}/f/freezegun/freezegun-${version}.tar.gz"
checksum=b29dedfcda6d5e8e083ce71b2b542753ad48cfec44037b3fc79702e2980a89e9
do_check() {
# Timezone needs to be fixed due to
# https://github.com/spulec/freezegun/issues/322.
TZ="UTC" PYTHONPATH="${PWD}/build/lib" python3 -m pytest
}