# Maintainer: Hoang Nguyen pkgname=py3-versioningit pkgver=2.1.0 pkgrel=1 pkgdesc="Versioning It with your Version In Git" url="https://github.com/jwodder/versioningit" arch="noarch" license="MIT" depends=" python3 py3-setuptools py3-packaging py3-pydantic " makedepends=" py3-gpep517 py3-installer py3-wheel " checkdepends="mercurial py3-build py3-pytest py3-pytest-mock py3-pytest-cov" source="$pkgname-$pkgver.tar.gz::https://github.com/jwodder/versioningit/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/${pkgname#py3-}-$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 -v test } package() { python3 -m installer -d "$pkgdir" \ dist/versioningit-$pkgver-py3-none-any.whl } sha512sums=" 3d0e935511067ef71a6632190d5b538d02ca7ae1747bdbb418e4058846d84ea29ab5b2c192333a90c5f725a572b1b55042b9e2331ff4aada0530ffbffceda648 py3-versioningit-2.1.0.tar.gz "