22 lines
778 B
Bash
22 lines
778 B
Bash
# Template file for 'python3-freezegun'
|
|
pkgname=python3-freezegun
|
|
version=1.2.2
|
|
revision=3
|
|
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=cd22d1ba06941384410cd967d8a99d5ae2442f57dfafeff2fda5de8dc5c05446
|
|
|
|
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
|
|
}
|