# Contributor: Galen Abell # Maintainer: Galen Abell pkgname=pass-git-helper pkgver=1.3.0 pkgrel=0 pkgdesc="git credential helper interfacing with pass, the standard unix password manager." url="https://github.com/languitar/pass-git-helper" arch="noarch" license="LGPL-3.0-only" depends="python3 py3-xdg" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-cov py3-pytest-mock" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/languitar/pass-git-helper/archive/v$pkgver.tar.gz" provides="py3-pass-git-helper=$pkgver-r$pkgrel" replaces="py3-pass-git-helper" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --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=" e1cd779b1e145fd17b26d5022eeed533bc0c9e3e85aa4106634f5cd897b23f81b1e91da243df4a97b34733b3625da342e98c0cf70ef85365d7d3ee198617c6d7 pass-git-helper-1.3.0.tar.gz "