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