mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-14 10:12:28 +02:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=pass-git-helper
|
|
pkgver=2.0.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="
|
|
919ae048a34f50a374c39d8b00f04f0607fab604a5d66481f3d28c1246f0de6f4ca0fc9b2300547c3cb90b4e7a3084f680f4540869773dd2ebd0e4b1e93f95b0 pass-git-helper-2.0.0.tar.gz
|
|
"
|