forked from qnx-ports/aports
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPKBUILD
More file actions
42 lines (38 loc) · 1.17 KB
/
APKBUILD
File metadata and controls
42 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Alpine-Contributor: Hoang Nguyen <[email protected]>
# Alpine-Contributor: Celeste <[email protected]>
# Maintainer: Ethan Leir <[email protected]>
pkgname=python3-time-machine
pkgver=2.16.0
pkgrel=0
pkgdesc="Python library for mocking the current time"
url="https://github.com/adamchainz/time-machine"
arch="all"
license="MIT"
depends="python3-dateutil"
makedepends="
python3-dev
python3-setuptools
python3-gpep517
python3-wheel
"
checkdepends="python3-pytest tzdata"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/adamchainz/time-machine/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/time-machine-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
19b764cccdff07056a7d42841da576d90037661a9f124e3fbab408bfa61dccf4b51b88a7e0741c87b03e7a8cc3306bb0ed32bd66588e45c9ab7e9d9cb5ba44ae python3-time-machine-2.16.0.tar.gz
"