1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/py3-whatthepatch/APKBUILD
2023-02-13 06:21:29 +00:00

35 lines
1 KiB
Text

# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-whatthepatch
pkgver=1.0.4
pkgrel=0
pkgdesc="library for parsing and applying patch files"
url="https://github.com/cscorley/whatthepatch"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/cscorley/whatthepatch/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/whatthepatch-$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 installer -d testenv dist/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
4b1a81747f88ae1718abf81babfb35375bcb189d9833c4fa37f96d90b95ab97a14a7ef4adeaa781fcf097724d9817ca63a3ccd0aaa29e1cabfaff16dd808a7f8 py3-whatthepatch-1.0.4.tar.gz
"