main/py3-time-machine: upgrade to 3.2.0 and take over maintainership

This commit is contained in:
Wen Heping 2026-04-09 09:09:29 +00:00 committed by omni
parent 3808c2bc7a
commit 009e7c8ebd

View File

@ -1,9 +1,10 @@
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer:
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
maintainer="Wen Heping <wenhepingalpine@sohu.com>"
pkgname=py3-time-machine
pkgver=2.16.0
pkgrel=2
pkgver=3.2.0
pkgrel=0
pkgdesc="Python library for mocking the current time"
url="https://github.com/adamchainz/time-machine"
arch="all"
@ -15,7 +16,7 @@ makedepends="
py3-gpep517
py3-wheel
"
checkdepends="py3-pytest tzdata"
checkdepends="py3-pytest py3-pytest-freezegun tzdata"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/adamchainz/time-machine/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/time-machine-$pkgver"
@ -29,7 +30,7 @@ build() {
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
.testenv/bin/python3 -m pytest --ignore=tests/test_cli.py # need tokenize-rt not in aports
}
package() {
@ -38,5 +39,5 @@ package() {
}
sha512sums="
19b764cccdff07056a7d42841da576d90037661a9f124e3fbab408bfa61dccf4b51b88a7e0741c87b03e7a8cc3306bb0ed32bd66588e45c9ab7e9d9cb5ba44ae py3-time-machine-2.16.0.tar.gz
84ff8d2e9c9bdde90efe3548bc151f38f812a4ba624cc9556dd2a89f72d664d73dca8be64a65ca2a5019393e5a8f91e130804313685b23dccc4932a9e05f973b py3-time-machine-3.2.0.tar.gz
"