projects/aports·blob master · refs

34 lines · 973 B

1maintainer="Achill Gilgenast <[email protected]>"
2pkgname=py3-prefixed
3pkgver=0.9.0
4pkgrel=1
5pkgdesc="Prefixed alternative numeric library"
6url="https://github.com/Rockhopper-Technologies/prefixed"
7arch="noarch"
8license="MPL-2.0"
9makedepends="py3-gpep517 py3-setuptools py3-wheel"
10checkdepends="py3-pytest"
11subpackages="$pkgname-pyc"
12source="$pkgname-$pkgver.tar.gz::https://github.com/Rockhopper-Technologies/prefixed/archive/refs/tags/$pkgver.tar.gz"
13builddir="$srcdir/prefixed-$pkgver"
14
15build() {
16 gpep517 build-wheel \
17 --wheel-dir .dist \
18 --output-fd 3 3>&1 >&2
19}
20
21check() {
22 python3 -m venv --clear --without-pip --system-site-packages .testenv
23 .testenv/bin/python3 -m installer .dist/*.whl
24 .testenv/bin/python3 -m pytest
25}
26
27package() {
28 python3 -m installer -d "$pkgdir" \
29 .dist/*.whl
30}
31
32sha512sums="
33d428b631b54c2b8c8d9d56e68f4fafd127df1f486181ef1f9ad1d3c2194959c9f572c9a2a9e3c0f7ff648bf82b8b8480f9911bab9426112ffef5f4d8066f3d98 py3-prefixed-0.9.0.tar.gz
34"